diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-03-11 11:32:45 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2020-03-11 11:32:45 -0400 |
commit | 1eda911c3d4afbf89829ba943bff0f29c212aee7 (patch) | |
tree | 0bc5a0c723dfcad242d15e5e643b282d9ba58be2 | |
parent | 4c7900e48a416209b76c60c24ce5c2eadb11d950 (diff) | |
download | sdl_ios-1eda911c3d4afbf89829ba943bff0f29c212aee7.tar.gz |
Add matching logs to Obj-C example
-rw-r--r-- | Example Apps/Example ObjC/PerformInteractionManager.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Example Apps/Example ObjC/PerformInteractionManager.m b/Example Apps/Example ObjC/PerformInteractionManager.m index 0cc389f92..d80c706b0 100644 --- a/Example Apps/Example ObjC/PerformInteractionManager.m +++ b/Example Apps/Example ObjC/PerformInteractionManager.m @@ -66,16 +66,19 @@ NS_ASSUME_NONNULL_BEGIN #pragma mark - SDLChoiceSetDelegate - (void)choiceSet:(SDLChoiceSet *)choiceSet didSelectChoice:(SDLChoiceCell *)choice withSource:(SDLTriggerSource)source atRowIndex:(NSUInteger)rowIndex { + SDLLogD(@"User selected row: %lu, choice: %@", (unsigned long)rowIndex, choice); [self.manager sendRequest:[[SDLSpeak alloc] initWithTTS:TTSGoodJob]]; } - (void)choiceSet:(SDLChoiceSet *)choiceSet didReceiveError:(NSError *)error { + SDLLogE(@"Error presenting choice set: %@", error); [self.manager sendRequest:[[SDLSpeak alloc] initWithTTS:TTSYouMissed]]; } #pragma mark - SDLKeyboardDelegate - (void)userDidSubmitInput:(NSString *)inputText withEvent:(SDLKeyboardEvent)source { + SDLLogD(@"User did submit keyboard input: %@, with event: %@", inputText, source); if ([source isEqualToEnum:SDLKeyboardEventSubmitted]) { [self.manager sendRequest:[[SDLSpeak alloc] initWithTTS:TTSGoodJob]]; } else if ([source isEqualToEnum:SDLKeyboardEventVoice]) { @@ -84,6 +87,7 @@ NS_ASSUME_NONNULL_BEGIN } - (void)keyboardDidAbortWithReason:(SDLKeyboardEvent)event { + SDLLogW(@"Keyboard aborted with reason: %@", event); [self.manager sendRequest:[[SDLSpeak alloc] initWithTTS:TTSYouMissed]]; } |