NavigationManager

class NavigationManager(metaDataRepo: MetadataRepository) : NavigationCallback

Drives the positioning engine navigation under the hood, re-broadcasting events to two sets of Kotlin listeners: one-shot and persistent.

Implements the engine's EngineNavigationCallback and translates engine types into SDK wrapper types before broadcasting to SDK-level NavigationCallback listeners.

Constructors

Link copied to clipboard
constructor(metaDataRepo: MetadataRepository)

Properties

Link copied to clipboard

Last known state (updated on every progress callback)

Functions

Link copied to clipboard

Register a listener for all future navigation events

Link copied to clipboard
open override fun onDestinationReached(destination: Waypoint)
Link copied to clipboard
open override fun onNavigationInitFailure(error: NavigationError)
Link copied to clipboard
open override fun onNavigationInitSuccess(state: NavigationState)
Link copied to clipboard
open override fun onRouteInstruction(currentInstruction: RoutePointInstruction, nextInstruction: RoutePointInstruction, afterNextInstruction: RoutePointInstruction)
Link copied to clipboard
open override fun onRouteRecalculation(state: NavigationState, newRoute: Route, pathType: RoutePathType)
Link copied to clipboard
open override fun onRouteSegmentReached(currentSegment: RoutePathSegment, visitedSegments: List<RoutePathSegment>, upcomingSegments: List<RoutePathSegment>)
Link copied to clipboard
open override fun onUserProgressAlongRoute(state: NavigationState)
Link copied to clipboard

Unregister a persistent listener

Link copied to clipboard
fun startNavigationMode(route: Route, routePathType: RoutePathType, options: RoutingOptions, constraints: RoutingConstraints, listener: NavigationCallback?)
Link copied to clipboard