ComponentInstaller

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.

Extensions

Link copied to clipboard
inline fun <T> ComponentInstaller.findComponent(): T?

Find installed component of type T.