ComponentInstaller

sealed interface ComponentInstaller

UIComponents installer interface.

Functions

Link copied to clipboard
open fun component(component: UIComponent): Installation

Install given UIComponent and manage its lifecycle alongside MapboxNavigation lifecycle.

Link copied to clipboard
abstract fun components(vararg components: UIComponent): Installation

Install multiple UIComponents and manage their lifecycle alongside MapboxNavigation lifecycle.

Link copied to clipboard
abstract fun <T> findComponent(predicate: (Any) -> Boolean): T?

Find installed component that matches given predicate.

Link copied to clipboard

Find installed component of type T.