SimulationOptions

data class SimulationOptions(val inLoop: Boolean = false, val timeInterval: Duration = 200.milliseconds, val restartDelay: Duration = 5.seconds, val altitude: Double? = null, val deviationRange: ClosedRange<Double>? = null, val simulateAttitude: Boolean = false, val horizontalAccuracy: Double? = null)

Options that configure how a SimulatorLocationSource replays coordinates.

Parameters

inLoop

Indicates whether the simulation restarts from the beginning once it reaches the end.

timeInterval

Time interval between two consecutive coordinate updates.

restartDelay

Delay before the simulation restarts when inLoop is enabled.

altitude

Altitude applied to each simulated coordinate, or null to leave it unset.

deviationRange

Range used to randomly deviate the simulated heading, or null to disable deviation.

simulateAttitude

Indicates whether attitude updates are simulated alongside coordinate updates.

horizontalAccuracy

Horizontal accuracy applied to each simulated coordinate, or null to leave it unset.

Constructors

Link copied to clipboard
constructor(inLoop: Boolean = false, timeInterval: Duration = 200.milliseconds, restartDelay: Duration = 5.seconds, altitude: Double? = null, deviationRange: ClosedRange<Double>? = null, simulateAttitude: Boolean = false, horizontalAccuracy: Double? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard