MapboxExitProperties

sealed class MapboxExitProperties

A class that allows you to define various properties you wish to use to render for ExitComponentNode of a given PrimaryManeuver, SecondaryManeuver or SubManeuver. The priority of fallback is in the order:

  • shouldFallbackWithDrawable

  • shouldFallbackWithText If both are set to false, no fallback will be applied and only the exit text associated with the Maneuver will be rendered.

Parameters

shouldFallbackWithDrawable

set to true if you want to use fallbackDrawable in case if the Maneuver contains an ExitComponentNode with a ManeuverModifier value other than left or right.

shouldFallbackWithText

set to true if you don't want to use a fallbackDrawable but prepend text "Exit" to the exit number in the Maneuver

exitBackground

background to be set to the text view

fallbackDrawable

drawable to be used in case ManeuverModifier has a different value other than left or right

exitLeftDrawable

drawable to be used when ManeuverModifier is left

exitRightDrawable

drawable to be used when ManeuverModifier is right

Types

Link copied to clipboard
class PropertiesMutcd(    val shouldFallbackWithText: Boolean = false,     val shouldFallbackWithDrawable: Boolean = true,     @DrawableRes val exitBackground: Int = R.drawable.mapbox_exit_board_background,     @DrawableRes val fallbackDrawable: Int = R.drawable.mapbox_ic_exit_arrow_right_mutcd,     @DrawableRes val exitLeftDrawable: Int = R.drawable.mapbox_ic_exit_arrow_left_mutcd,     @DrawableRes val exitRightDrawable: Int = R.drawable.mapbox_ic_exit_arrow_right_mutcd) : MapboxExitProperties

An implementation of MapboxExitProperties that allows you to define various properties you wish to use to render for ExitComponentNode of a given PrimaryManeuver, SecondaryManeuver or SubManeuver. The properties specified in this implementation will be used in countries that follow MUTCD convention. The priority of fallback is in the order:

Link copied to clipboard
class PropertiesVienna(    val shouldFallbackWithText: Boolean = false,     val shouldFallbackWithDrawable: Boolean = true,     @DrawableRes val exitBackground: Int = R.drawable.mapbox_exit_board_background,     @DrawableRes val fallbackDrawable: Int = R.drawable.mapbox_ic_exit_arrow_left_vienna,     @DrawableRes val exitLeftDrawable: Int = R.drawable.mapbox_ic_exit_arrow_left_vienna,     @DrawableRes val exitRightDrawable: Int = R.drawable.mapbox_ic_exit_arrow_right_vienna) : MapboxExitProperties

An implementation of MapboxExitProperties that allows you to define various properties you wish to use to render for ExitComponentNode of a given PrimaryManeuver, SecondaryManeuver or SubManeuver. The properties specified in this implementation will be used in countries that follow VIENNA convention. The priority of fallback is in the order:

Properties

Link copied to clipboard
val exitBackground: Int
Link copied to clipboard
val exitLeftDrawable: Int
Link copied to clipboard
val exitRightDrawable: Int
Link copied to clipboard
val fallbackDrawable: Int
Link copied to clipboard
val shouldFallbackWithDrawable: Boolean
Link copied to clipboard
val shouldFallbackWithText: Boolean

Inheritors

Link copied to clipboard
Link copied to clipboard