RadarTrackingOptions

data class RadarTrackingOptions(desiredStoppedUpdateInterval: Int, fastestStoppedUpdateInterval: Int, desiredMovingUpdateInterval: Int, fastestMovingUpdateInterval: Int, desiredSyncInterval: Int, desiredAccuracy: RadarTrackingOptions.RadarTrackingOptionsDesiredAccuracy, stopDuration: Int, stopDistance: Int, startTrackingAfter: Date?, stopTrackingAfter: Date?, replay: RadarTrackingOptions.RadarTrackingOptionsReplay, sync: RadarTrackingOptions.RadarTrackingOptionsSync, useStoppedGeofence: Boolean, stoppedGeofenceRadius: Int, useMovingGeofence: Boolean, movingGeofenceRadius: Int, syncGeofences: Boolean, syncGeofencesLimit: Int, foregroundServiceEnabled: Boolean, beacons: Boolean)

An options class used to configure background tracking.

See also

Constructors

RadarTrackingOptions
Link copied to clipboard
fun RadarTrackingOptions(desiredStoppedUpdateInterval: Int, fastestStoppedUpdateInterval: Int, desiredMovingUpdateInterval: Int, fastestMovingUpdateInterval: Int, desiredSyncInterval: Int, desiredAccuracy: RadarTrackingOptions.RadarTrackingOptionsDesiredAccuracy, stopDuration: Int, stopDistance: Int, startTrackingAfter: Date?, stopTrackingAfter: Date?, replay: RadarTrackingOptions.RadarTrackingOptionsReplay, sync: RadarTrackingOptions.RadarTrackingOptionsSync, useStoppedGeofence: Boolean, stoppedGeofenceRadius: Int, useMovingGeofence: Boolean, movingGeofenceRadius: Int, syncGeofences: Boolean, syncGeofencesLimit: Int, foregroundServiceEnabled: Boolean, beacons: Boolean)

Types

Companion
Link copied to clipboard
object Companion
RadarTrackingOptionsDesiredAccuracy
Link copied to clipboard
The location accuracy options.
RadarTrackingOptionsForegroundService
Link copied to clipboard
data class RadarTrackingOptionsForegroundService(text: String?, title: String?, icon: Int?, updatesOnly: Boolean, activity: String?, importance: Int?, id: Int?, channelName: String?)
RadarTrackingOptionsReplay
Link copied to clipboard
The replay options for failed location updates.
RadarTrackingOptionsSync
Link copied to clipboard

Functions

toJson
Link copied to clipboard
fun toJson(): JSONObject

Properties

beacons
Link copied to clipboard
var beacons: Boolean
Determines whether to monitor beacons.
desiredAccuracy
Link copied to clipboard
Determines the desired accuracy of location updates.
desiredMovingUpdateInterval
Link copied to clipboard
var desiredMovingUpdateInterval: Int
Determines the desired location update interval in seconds when moving.
desiredStoppedUpdateInterval
Link copied to clipboard
var desiredStoppedUpdateInterval: Int
Determines the desired location update interval in seconds when stopped.
desiredSyncInterval
Link copied to clipboard
var desiredSyncInterval: Int
Determines the desired sync interval in seconds.
fastestMovingUpdateInterval
Link copied to clipboard
var fastestMovingUpdateInterval: Int
Determines the fastest location update interval in seconds when moving.
fastestStoppedUpdateInterval
Link copied to clipboard
var fastestStoppedUpdateInterval: Int
Determines the fastest location update interval in seconds when stopped.
foregroundServiceEnabled
Link copied to clipboard
var foregroundServiceEnabled: Boolean
If set, starts a foreground service and shows a notification during tracking.
movingGeofenceRadius
Link copied to clipboard
var movingGeofenceRadius: Int
Determines the radius in meters of the client geofence around the device's current location when moving.
replay
Link copied to clipboard
Determines which failed location updates to replay to the server.
startTrackingAfter
Link copied to clipboard
var startTrackingAfter: Date?
Determines when to start tracking.
stopDistance
Link copied to clipboard
var stopDistance: Int
With stopDuration, determines the distance in meters within which the device is considered stopped.
stopDuration
Link copied to clipboard
var stopDuration: Int
With stopDistance, determines the duration in seconds after which the device is considered stopped.
stoppedGeofenceRadius
Link copied to clipboard
var stoppedGeofenceRadius: Int
Determines the radius in meters of the client geofence around the device's current location when stopped.
stopTrackingAfter
Link copied to clipboard
var stopTrackingAfter: Date?
Determines when to stop tracking.
sync
Link copied to clipboard
var sync: RadarTrackingOptions.RadarTrackingOptionsSync
Determines which location updates to sync to the server.
syncGeofences
Link copied to clipboard
var syncGeofences: Boolean
Determines whether to sync nearby geofences from the server to the client to improve responsiveness.
syncGeofencesLimit
Link copied to clipboard
var syncGeofencesLimit: Int
Determines how many nearby geofences to sync from the server to the client when syncGeofences is enabled.
useMovingGeofence
Link copied to clipboard
var useMovingGeofence: Boolean
Determines whether to create a client geofence around the device's current location when moving.
useStoppedGeofence
Link copied to clipboard
var useStoppedGeofence: Boolean
Determines whether to create a client geofence around the device's current location when stopped.