Builder

class Builder

Used to build ReplayRouteSession.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): ReplayRouteSessionOptions
Link copied to clipboard
fun decodeMinDistance(decodeDistance: Double): ReplayRouteSessionOptions.Builder

The DirectionsRoute.geometry is decoded when needed. This defines a minimum distance in kilometers to decode at a time.

Link copied to clipboard
fun locationResetEnabled(locationResetEnabled: Boolean): ReplayRouteSessionOptions.Builder

The replay session will use the device location when the route is cleared. If you do not want this behavior disable with false.

Link copied to clipboard
fun replayRouteOptions(replayRouteOptions: ReplayRouteOptions): ReplayRouteSessionOptions.Builder

Set the ReplayRouteOptions. The next time a batch of locations are decoded the options will be used. This will not effect the locations that are already simulated.