Builder

open class Builder

The Builder of NavigationMapRoute.

Constructors

Builder
Link copied to clipboard
open fun Builder(mapView: MapView, mapboxMap: MapboxMap, lifecycleOwner: LifecycleOwner)
Instantiates a new Builder.

Functions

build
Link copied to clipboard
open fun build(): NavigationMapRoute
Build an instance of NavigationMapRoute
withBelowLayer
Link copied to clipboard
open fun withBelowLayer(belowLayer: String): NavigationMapRoute.Builder
BelowLayer optionally pass in a layer id to place the route line below
withMapboxNavigation
Link copied to clipboard
open fun withMapboxNavigation(navigation: MapboxNavigation): NavigationMapRoute.Builder
An instance of the MapboxNavigation object.
withRouteLineInitializedCallback
Link copied to clipboard
open fun withRouteLineInitializedCallback(routeLineInitializedCallback: MapRouteLineInitializedCallback): NavigationMapRoute.Builder
Indicate that the route line layer has been added to the current style
withRouteStyleDescriptors
Link copied to clipboard
open fun withRouteStyleDescriptors(routeStyleDescriptors: List<RouteStyleDescriptor>): NavigationMapRoute.Builder
RouteStyleDescriptors can be used for programmatically styling the route lines.
withStyle
Link copied to clipboard
open fun withStyle(styleRes: Int): NavigationMapRoute.Builder
Style resource with custom route colors, scale, etc.
withVanishRouteLineEnabled
Link copied to clipboard
open fun withVanishRouteLineEnabled(enabled: Boolean): NavigationMapRoute.Builder
determines if the route line should vanish behind the puckduring navigation.