MapboxScreenManager

class MapboxScreenManager

The Mapbox Navigation Android Auto SDK is prepared with a default experience. This object allows you to customize the experience to meet your needs.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun contains(key: String): Boolean

Check if there is a factory assigned to the key. This can be used to assign a factory when there is not one set. This can also be used to verify the type of the factory.

Link copied to clipboard
fun createScreen(screenKey: String): Screen

This should be used to create a screen from Session.onCreateScreen. If the screen changes the screenEvent observers will be notified with an MapboxScreenOperation.CREATED event.

Link copied to clipboard
fun goBack(): Boolean

Calling this function will pop the back stack of the ScreenManager. If there are no screens on the backstack, it will safely return false. If you are using the ScreenManager and the goBack operation results in an unknown backstack, this will throw an IllegalStateException.

Link copied to clipboard
fun putAll(vararg pairs: Pair<String, MapboxScreenFactory>): MapboxScreenManager

Allows you to put all defined screen factories into the manager in one operation.

Link copied to clipboard
operator fun <T : MapboxScreenFactory> set(key: String, factory: T): MapboxScreenFactory?

Returns the previously set screen factory.