MQNavigationManagerPromptDelegate

@protocol MQNavigationManagerPromptDelegate <NSObject>

The MQNavigationManagerPromptDelegate protocol defines the methods that a delegate of an MQNavigationManager object can implement to handle prompts to speak the upcoming maneuvers

  • Called when a prompt advice should be spoken

    Declaration

    Objective-C

    - (void)navigationManager:(nonnull MQNavigationManager *)navigationManager
               receivedPrompt:(nonnull MQPrompt *)promptToSpeak
                userInitiated:(BOOL)userInitiated;

    Swift

    func navigationManager(_ navigationManager: MQNavigationManager, receivedPrompt promptToSpeak: MQPrompt, userInitiated: Bool)

    Parameters

    navigationManager

    Object informing the delegate of this impending event

    promptToSpeak

    Prompt object that should be spoken at the earliest

    userInitiated

    Indicates when the spoken prompt was initiated by the user

  • Called when you should stop any advice being spoken. Happens when the user is off route

    Declaration

    Objective-C

    - (void)cancelPromptsForNavigationManager:
        (nonnull MQNavigationManager *)navigationManager;

    Swift

    func cancelPrompts(for navigationManager: MQNavigationManager)

    Parameters

    navigationManager

    navigationManager object informing the delegate of this impending event