UIComponent

open class UIComponent : MapboxNavigationObserver

Using the UIComponent gives you access to a coroutineScope. 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

UIComponent
Link copied to clipboard
fun UIComponent()

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onAttached
Link copied to clipboard
open override fun onAttached(mapboxNavigation: MapboxNavigation)
Signals that the mapboxNavigation instance is ready for use.
onDetached
Link copied to clipboard
open override fun onDetached(mapboxNavigation: MapboxNavigation)
Signals that the mapboxNavigation instance is being detached.
toString
Link copied to clipboard
open fun toString(): String

Properties

coroutineScope
Link copied to clipboard
lateinit var coroutineScope: CoroutineScope
Defines a scope for new coroutine