UICoordinator

abstract class UICoordinator<T : ViewGroup>(viewGroup: T) : MapboxNavigationObserver

Attach a UICoordinator to a ViewGroup of your choosing. When you implement this class you will need to build a Flow with Binder. There can only be one view binder attached at a time for the ViewGroup.

Constructors

UICoordinator
Link copied to clipboard
fun <T : ViewGroup> UICoordinator(viewGroup: T)

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
flowViewBinders
Link copied to clipboard
abstract fun MapboxNavigation.flowViewBinders(): Flow<Binder<T>>
Create your flowable UIBinder.
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