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 all the calculation to obtain the route are done and the navigation is started. Status of navigation object will be started
Declaration
Swift
func onNavigationStarted(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