public abstract static class MapboxNavigationOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract MapboxNavigationOptions |
build() |
abstract MapboxNavigationOptions.Builder |
defaultMilestonesEnabled(boolean defaultMilestonesEnabled) |
abstract MapboxNavigationOptions.Builder |
defaultNotificationColorId(int defaultNotificationColorId)
Optionally, set the background color of the default notification.
|
abstract MapboxNavigationOptions.Builder |
enableAutoIncrementLegIndex(boolean enableAutoIncrementLegIndex) |
abstract MapboxNavigationOptions.Builder |
enableFasterRouteDetection(boolean enableFasterRouteDetection) |
abstract MapboxNavigationOptions.Builder |
enableRefreshRoute(boolean enableRefreshRoute)
This enables / disables refresh route.
|
abstract MapboxNavigationOptions.Builder |
intersectionRadiusForOffRouteDetection(float radiusInMeters)
This sets the radius in meters for off route detection near intersection.
|
abstract MapboxNavigationOptions.Builder |
isDebugLoggingEnabled(boolean debugLoggingEnabled) |
abstract MapboxNavigationOptions.Builder |
isFromNavigationUi(boolean isFromNavigationUi) |
abstract MapboxNavigationOptions.Builder |
navigationLocationEngineIntervalLagInMilliseconds(int lagInMilliseconds) |
abstract MapboxNavigationOptions.Builder |
navigationNotification(NavigationNotification notification) |
abstract MapboxNavigationOptions.Builder |
offRouteThreshold(float thresholdInMeters)
This sets the off route threshold in meters.
|
abstract MapboxNavigationOptions.Builder |
offRouteThresholdWhenNearIntersection(float thresholdInMeters)
This sets the off route threshold in meters when near an intersection which is more prone
to inaccurate gps fixes.
|
abstract MapboxNavigationOptions.Builder |
refreshIntervalInMilliseconds(long intervalInMilliseconds)
This sets the route refresh interval.
|
abstract MapboxNavigationOptions.Builder |
roundingIncrement(int roundingIncrement) |
abstract MapboxNavigationOptions.Builder |
timeFormatType(int type) |
public abstract MapboxNavigationOptions.Builder defaultMilestonesEnabled(boolean defaultMilestonesEnabled)
public abstract MapboxNavigationOptions.Builder enableFasterRouteDetection(boolean enableFasterRouteDetection)
public abstract MapboxNavigationOptions.Builder enableAutoIncrementLegIndex(boolean enableAutoIncrementLegIndex)
public abstract MapboxNavigationOptions.Builder enableRefreshRoute(boolean enableRefreshRoute)
enableRefreshRoute
- whether or not to enable route refreshpublic abstract MapboxNavigationOptions.Builder refreshIntervalInMilliseconds(long intervalInMilliseconds)
intervalInMilliseconds
- for route refreshpublic abstract MapboxNavigationOptions.Builder isFromNavigationUi(boolean isFromNavigationUi)
public abstract MapboxNavigationOptions.Builder isDebugLoggingEnabled(boolean debugLoggingEnabled)
public abstract MapboxNavigationOptions.Builder navigationNotification(NavigationNotification notification)
public abstract MapboxNavigationOptions.Builder roundingIncrement(int roundingIncrement)
public abstract MapboxNavigationOptions.Builder timeFormatType(int type)
public abstract MapboxNavigationOptions.Builder navigationLocationEngineIntervalLagInMilliseconds(int lagInMilliseconds)
public abstract MapboxNavigationOptions.Builder defaultNotificationColorId(@ColorRes int defaultNotificationColorId)
defaultNotificationColorId
- the color resource to be usedpublic abstract MapboxNavigationOptions.Builder offRouteThreshold(float thresholdInMeters)
thresholdInMeters
- the off route threshold in meters to be usedpublic abstract MapboxNavigationOptions.Builder offRouteThresholdWhenNearIntersection(float thresholdInMeters)
thresholdInMeters
- the off route threshold in meters when near an intersection to be usedpublic abstract MapboxNavigationOptions.Builder intersectionRadiusForOffRouteDetection(float radiusInMeters)
radiusInMeters
- the radius in meters for off route detection near intersection to be usedpublic abstract MapboxNavigationOptions build()
© 2019 Mapbox. All rights reserved.