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