Package-level declarations

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

This extension removes boilerplate from a class that needs to use MapboxNavigation, and it makes your class appear as if it implements MapboxNavigationObserver without exposing the functions.

Link copied to clipboard
fun LifecycleOwner.requireMapboxNavigation(onCreatedObserver: MapboxNavigationObserver? = null, onStartedObserver: MapboxNavigationObserver? = null, onResumedObserver: MapboxNavigationObserver? = null, onInitialize: () -> Unit? = null): ReadOnlyProperty<Any, MapboxNavigation>

Extension function to make it simple to create the RequireMapboxNavigationDelegate. Below are a couple examples of how you may use the delegate.