MMKNavigationListener

Warning

This feature is available in the NaviKit SDK version.

protocol MMKNavigationListener : NSObjectProtocol

Summary

Instance methods

func onRoutesRequested(with points: [MMKRequestPoint])

func onAlternativesRequested(withCurrentRoute currentRoute: MMKDrivingRoute)
Calls when a user requested alternatives for the current route

func onUriResolvingRequested(withUri uri: String)

func onMatchRouteResolvingRequested()

func onRoutesBuilt()
Calls when routes, alternatives, or URI request succeeds After alternatives request Navigation

func onRoutesRequestErrorWithError(_ error: Error)
Will be called when an error occurs during routes, alternatives or uri request

func onResetRoutes()

Instance methods

onRoutesRequested(with:)

func onRoutesRequested(with points: [MMKRequestPoint])


onAlternativesRequested(withCurrentRoute:)

func onAlternativesRequested(withCurrentRoute currentRoute: MMKDrivingRoute)

Calls when a user requested alternatives for the current route. After this callback Navigation will have the current route and fastest alternative route (if available) in Navigation.routes()


onUriResolvingRequested(withUri:)

func onUriResolvingRequested(withUri uri: String)


onMatchRouteResolvingRequested()

func onMatchRouteResolvingRequested()


onRoutesBuilt()

func onRoutesBuilt()

Calls when routes, alternatives, or URI request succeeds After alternatives request Navigation.routes() will have current route and fastest alternative for the request moment along with received alternatives.


onRoutesRequestErrorWithError(_:)

func onRoutesRequestErrorWithError(_ error: Error)

Will be called when an error occurs during routes, alternatives or uri request


onResetRoutes()

func onResetRoutes()