Package com.mapbox.navigation.core.lifecycle
Types
Link copied to clipboard
Manages a default lifecycle for MapboxNavigation.
Link copied to clipboard
Defines an object that needs to interact with or observe MapboxNavigation. Use the MapboxNavigationApp singleton to register and unregister observers with MapboxNavigationApp.registerObserver and MapboxNavigationApp.unregisterObserver.
Link copied to clipboard
Represents a function that returns NavigationOptions
Functions
Link copied to clipboard
fun LifecycleOwner.requireMapboxNavigation( onCreatedObserver: MapboxNavigationObserver? = null, onStartedObserver: MapboxNavigationObserver? = null, onResumedObserver: MapboxNavigationObserver? = null, onInitialize: () -> Unit? = null): ReadOnlyProperty<Any, MapboxNavigation>
Content copied to clipboard
Extension function to make it simple to create the RequireMapboxNavigationDelegate. Below are a couple examples of how you may use the delegate.