OnNavigationListener

public protocol OnNavigationListener

Delegate that get notified about navigation events

  • Called when a navigation request was made either by user or by the library. Status of navigation object will be requested

    Declaration

    Swift

    func onNavigationRequested(navigation: Navigation)

    Parameters

    navigation

    navigation object

  • Called when navigation fails due an error. Status of navigation object will be error

    Declaration

    Swift

    func onNavigationError(navigation: Navigation, error: Error)

    Parameters

    navigation

    navigation object

    error

    error that makes navigation fail

  • Called when navigation finishes either by user cancelation or user reaching the destination. Status of navigation object will be destinationReached or canceled

    Declaration

    Swift

    func onNavigationFinished(navigation: Navigation)

    Parameters

    navigation

    navigation object