Builder

class Builder(applicationContext: Context)

Build a new NavigationOptions

Constructors

Link copied to clipboard
fun Builder(applicationContext: Context)

Functions

Link copied to clipboard
fun build(): NavigationOptions

Build a new instance of NavigationOptions

Link copied to clipboard
fun copilotOptions(copilotOptions: CopilotOptions): NavigationOptions.Builder

Defines configuration for Copilot

Link copied to clipboard
fun deviceProfile(deviceProfile: DeviceProfile): NavigationOptions.Builder

Defines the type of device creating localization data

Link copied to clipboard
fun distanceFormatterOptions(distanceFormatterOptions: DistanceFormatterOptions): NavigationOptions.Builder

Defines format distances showing in notification during navigation

Link copied to clipboard
fun eHorizonOptions(eHorizonOptions: EHorizonOptions): NavigationOptions.Builder

Defines configuration for the Electronic Horizon

Link copied to clipboard
fun enableSensors(value: Boolean): NavigationOptions.Builder

Enables analyzing data from sensors for better location prediction in case of a weak GPS signal, for example in tunnel. Usage of sensors can increase battery consumption. Warning: don't enable sensors if you emulate location updates. The SDK ignores location updates which don't match data from sensors.

Link copied to clipboard
fun eventsAppMetadata(eventsAppMetadata: EventsAppMetadata?): NavigationOptions.Builder

Defines EventsAppMetadata information

Link copied to clipboard
fun historyRecorderOptions(historyRecorderOptions: HistoryRecorderOptions): NavigationOptions.Builder

Defines configuration history recording

Link copied to clipboard
fun incidentsOptions(incidentsOptions: IncidentsOptions): NavigationOptions.Builder

Defines configuration for live incidents

Link copied to clipboard
fun isDebugLoggingEnabled(flag: Boolean): NavigationOptions.Builder

Defines if debug logging is enabled

Link copied to clipboard
fun locationOptions(locationOptions: LocationOptions): NavigationOptions.Builder

Sets location options. See LocationOptions for details. By default real location with default location provider will be used.

Link copied to clipboard
fun longRoutesOptimisationOptions(longRoutesOptimisationOptions: LongRoutesOptimisationOptions): NavigationOptions.Builder

Defines configuration which triggers optimised behaviour which is different from regular. See LongRoutesOptimisationOptions.OptimiseNavigationForLongRoutes for more details.

Link copied to clipboard
fun navigatorPredictionMillis(predictionMillis: Long): NavigationOptions.Builder

Defines approximate navigator prediction in milliseconds

Link copied to clipboard
fun rerouteOptions(rerouteOptions: RerouteOptions): NavigationOptions.Builder

Defines configuration for reroute

Link copied to clipboard
fun routeAlternativesOptions(routeAlternativesOptions: RouteAlternativesOptions): NavigationOptions.Builder

Defines configuration for route refresh

Link copied to clipboard
fun routeRefreshOptions(routeRefreshOptions: RouteRefreshOptions): NavigationOptions.Builder

Defines configuration for route refresh

Link copied to clipboard
fun routingTilesOptions(routingTilesOptions: RoutingTilesOptions): NavigationOptions.Builder

Defines configuration for the default on-board router

Link copied to clipboard
fun timeFormatType(type: Int): NavigationOptions.Builder

Defines time format for calculation remaining trip time