UIComponent

Using the UIComponent gives you access to a coroutineScope which uses Dispatchers.Main.immediate. All coroutines that you launch inside onAttached will be canceled when the observer is detached. You do not need to implement onDetached for your flowable components.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
lateinit var coroutineScope: CoroutineScope

Defines a scope for new coroutine

Functions

Link copied to clipboard
open override fun onAttached(mapboxNavigation: MapboxNavigation)

Signals that the mapboxNavigation instance is attached and ready for use.

Link copied to clipboard
open override fun onDetached(mapboxNavigation: MapboxNavigation)

Signals that the mapboxNavigation instance is being detached.