Package com.mapbox.navigation.ui.base.lifecycle

Types

Link copied to clipboard
interface Binder<T>

This interface works with the UICoordinator. Implementations of this class representation are responsible for transitioning a view(s) into the ViewGroup. They are also responsible for deciding what components should be part of the view.

Link copied to clipboard
fun interface UIBinder : Binder<ViewGroup>

This interface works with the UICoordinator. Implementations of this class representation are responsible for transitioning a view(s) into the ViewGroup. They are also responsible for deciding what components should be part of the view.

Link copied to clipboard
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.

Link copied to clipboard
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.