ViewOptionsCustomization

class ViewOptionsCustomization

A class that allows you to define values for various different properties used by the NavigationView. If not specified, NavigationView uses the default values defined for each of these properties.

Constructors

Link copied to clipboard
fun ViewOptionsCustomization()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var distanceFormatterOptions: DistanceFormatterOptions? = null

Set to override DistanceFormatterOptions

Link copied to clipboard
var enableMapLongClickIntercept: Boolean? = null

Set to false if you don't want NavigationView to intercept OnMapLongClickListener events. Set to true as the default behavior.

Link copied to clipboard
var infoPanelForcedState: Int? = null

Set to override Info Panel BottomSheet state. Setting this value to one of BottomSheetBehavior.STATE_COLLAPSED, BottomSheetBehavior.STATE_EXPANDED, BottomSheetBehavior.STATE_HIDDEN or BottomSheetBehavior.STATE_HALF_EXPANDED will disable default (auto-hiding) behaviour. Set to 0 to restore the default behavior.

Link copied to clipboard
var isInfoPanelHideable: Boolean? = null

Sets whether the Info Panel can hide when it is swiped down. Set to false for the default behavior.

Link copied to clipboard
var mapStyleUriDay: String? = null

Provide custom navigation style for day mode. Use NavigationStyles.NAVIGATION_DAY_STYLE to reset to default.

Link copied to clipboard
var mapStyleUriNight: String? = null

Provide custom navigation style for night mode. Use NavigationStyles.NAVIGATION_NIGHT_STYLE to reset to default.

Link copied to clipboard
var routeArrowOptions: RouteArrowOptions? = null

Provide custom route arrow options. Use ViewOptionsCustomization.defaultRouteArrowOptions to reset to default.

Link copied to clipboard
var routeLineOptions: MapboxRouteLineOptions? = null

Provide custom route line options. Use ViewOptionsCustomization.defaultRouteLineOptions to reset to default.

Link copied to clipboard
var showInfoPanelInFreeDrive: Boolean? = null

Set if the Info Panel should be visible for the Free Drive state. When set to trueInfoPanelBinder will only render an empty info panel. You are responsible to inflate appropriate Binder to render the content you would like to show on the info panel during free drive. Set to false for the default behavior.