public interface PromptListener
Modifier and Type | Method and Description |
---|---|
void |
onPromptReceived(Prompt promptToSpeak,
boolean userInitiated)
Invoked by the NavigationManager whenever a navigation prompt should be spoken
(and/or displayed) to the user.
|
void |
onShouldCancelPrompts()
Invoked by the NavigationManager whenever the playback of (any active) prompts should be immediately canceled.
|
void onPromptReceived(Prompt promptToSpeak, boolean userInitiated)
promptToSpeak
- the details of the Prompt
which should be spoken.userInitiated
- whether or not this prompt is being triggered as the result of a user action.void onShouldCancelPrompts()
Note this can happen if the user suddenly cancels a navigation session, and so all prompts currently being played should be immediately stopped.