PropertiesMutcd
fun PropertiesMutcd( shouldFallbackWithText: Boolean = false, shouldFallbackWithDrawable: Boolean = true, @DrawableRes exitBackground: Int = R.drawable.mapbox_exit_board_background, @DrawableRes fallbackDrawable: Int = R.drawable.mapbox_ic_exit_arrow_right_mutcd, @DrawableRes exitLeftDrawable: Int = R.drawable.mapbox_ic_exit_arrow_left_mutcd, @DrawableRes exitRightDrawable: Int = R.drawable.mapbox_ic_exit_arrow_right_mutcd)
Content copied to clipboard
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