MapboxNavigationProvider

object MapboxNavigationProvider

Singleton responsible for ensuring there is only one MapboxNavigation instance.

Functions

Link copied to clipboard
fun create(navigationOptions: NavigationOptions): MapboxNavigation

Create MapboxNavigation with provided options. Should be called before retrieve

Link copied to clipboard
fun destroy()

Destroy MapboxNavigation when your process/activity exits.

Link copied to clipboard
fun isCreated(): Boolean

Check if MapboxNavigation is created.

Link copied to clipboard
fun retrieve(): MapboxNavigation

Retrieve MapboxNavigation instance. Should be called after create.