NavigableRoute

class NavigableRoute constructor(seedRoute: Route, globalProgressSource: RouteProgressSource<RouteProgress?>, startNavigation: (Route, StartNavigationResultListener) -> Unit, updateActiveRoute: (Route) -> Unit, routeUpdatesUseCase: RouteUpdatesUseCase, alternateRoutesPlanner: PlanAlternateRoutesUseCase) : RouteProgressSource<RouteProgress>

Functions

Link copied to clipboard
fun addRouteUpdatesLifecycle(lifecycle: Lifecycle)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun registerRouteProgressListener(listener: RouteProgressListener<RouteProgress?>): Disposable
Link copied to clipboard
fun removeRouteUpdatesLifecycle(lifecycle: Lifecycle)
Link copied to clipboard
@RequiresPermission(value = "android.permission.ACCESS_FINE_LOCATION")
fun startNavigation(startNavigationResultListener: StartNavigationResultListener)
Link copied to clipboard
suspend fun updateAlternativeRoutes()

Trigger an update to the list of alternativeRoutes

Properties

Link copied to clipboard
open override val activeRouteProgress: Flow<RouteProgress>
Link copied to clipboard
val alternativeRoutes: StateFlow<List<AlternativeRoute>>

Alternative options for the current Route, e.g. using different Route.profiles. Note that at present, these are only updated when calling updateAlternativeRoutes