mockTracking

fun mockTracking(origin: Location, destination: Location, mode: Radar.RadarRouteMode, steps: Int, interval: Int, callback: Radar.RadarTrackCallback?)

Mocks tracking the user's location from an origin to a destination.

See also

Parameters

origin

The origin.

destination

The destination.

mode

The travel mode.

steps

The number of mock location updates.

interval

The interval in seconds between each mock location update. A number between 1 and 60.

callback

An optional callback.

fun mockTracking(origin: Location, destination: Location, mode: Radar.RadarRouteMode, steps: Int, interval: Int, block: (status: Radar.RadarStatus, location: Location?, events: Array<RadarEvent>?, user: RadarUser?) -> Unit)

Mocks tracking the user's location from an origin to a destination.

See also

Parameters

origin

The origin.

destination

The destination.

mode

The travel mode.

steps

The number of mock location updates.

interval

The interval in seconds between each mock location update. A number between 1 and 60.

block

A block callback.