RadarTrackingOptions is a configuration class used to control background tracking behavior. It provides fine-grained control over location update intervals, accuracy, sync behavior, and iOS location services.
Properties
int
Determines the desired location update interval in seconds when stopped. Use
0 to shut down when stopped.Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
int
Determines the desired location update interval in seconds when moving.
Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
int
Determines the desired sync interval in seconds.
RadarTrackingOptionsDesiredAccuracy
Determines the desired accuracy of location updates.Values:
RadarTrackingOptionsDesiredAccuracyHigh- UseskCLLocationAccuracyBestRadarTrackingOptionsDesiredAccuracyMedium- UseskCLLocationAccuracyHundredMeters(default)RadarTrackingOptionsDesiredAccuracyLow- UseskCLLocationAccuracyKilometer
int
With
stopDistance, determines the duration in seconds after which the device is considered stopped.int
With
stopDuration, determines the distance in meters within which the device is considered stopped.NSDate
Determines when to start tracking. Use
nil to start tracking when startTracking is called.NSDate
Determines when to stop tracking. Use
nil to track until stopTracking is called.RadarTrackingOptionsReplay
Determines which failed location updates to replay to the server.Values:
RadarTrackingOptionsReplayStops- Replays failed stopsRadarTrackingOptionsReplayNone- Replays no failed location updatesRadarTrackingOptionsReplayAll- Replays all failed location updates
RadarTrackingOptionsSyncLocations
Determines which location updates to sync to the server.Values:
RadarTrackingOptionsSyncAll- Syncs all location updates to the serverRadarTrackingOptionsSyncStopsAndExits- Syncs only stops and exits to the serverRadarTrackingOptionsSyncNone- Syncs no location updates to the server
BOOL
Determines whether the flashing blue status bar is shown when tracking.See Apple’s documentation for more details.
BOOL
Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device’s current location when stopped.See Apple’s documentation on region monitoring for more details.
int
Determines the radius in meters of the client geofence around the device’s current location when stopped.
BOOL
Determines whether to use the iOS region monitoring service (geofencing) to create a client geofence around the device’s current location when moving.See Apple’s documentation on region monitoring for more details.
int
Determines the radius in meters of the client geofence around the device’s current location when moving.
BOOL
Determines whether to sync nearby geofences from the server to the client to improve responsiveness.
BOOL
Determines whether to use the iOS visit monitoring service.See Apple’s documentation on visit monitoring for more details.
BOOL
Determines whether to use the iOS significant location change service.See Apple’s documentation on significant location changes for more details.
BOOL
Determines whether to monitor beacons.
BOOL
Determines whether to use indoor scanning.
BOOL
Determines whether to use the iOS motion activity service.
BOOL
Determines whether to use the iOS pressure service.
Preset Configurations
Radar provides three preset tracking configurations optimized for common use cases.presetContinuous
desiredStoppedUpdateInterval: 30 secondsdesiredMovingUpdateInterval: 30 secondsdesiredSyncInterval: 20 secondsdesiredAccuracy: HighstopDuration: 140 secondsstopDistance: 70 meterssyncLocations: Allreplay: NoneshowBlueBar: YESuseStoppedGeofence: NOuseMovingGeofence: NOsyncGeofences: YESuseVisits: NOuseSignificantLocationChanges: NO
presetResponsive
location background mode.
Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
desiredStoppedUpdateInterval: 0 seconds (shut down when stopped)desiredMovingUpdateInterval: 150 secondsdesiredSyncInterval: 20 secondsdesiredAccuracy: MediumstopDuration: 140 secondsstopDistance: 70 meterssyncLocations: Allreplay: StopsshowBlueBar: NOuseStoppedGeofence: YES (100m radius)useMovingGeofence: YES (100m radius)syncGeofences: YESuseVisits: YESuseSignificantLocationChanges: YES
presetEfficient
Location updates may be delayed significantly by Low Power Mode, or if the device has connectivity issues, low battery, or Wi-Fi disabled.
desiredStoppedUpdateInterval: 0 secondsdesiredMovingUpdateInterval: 0 secondsdesiredSyncInterval: 0 secondsdesiredAccuracy: MediumstopDuration: 0 secondsstopDistance: 0 meterssyncLocations: Allreplay: StopsshowBlueBar: NOuseStoppedGeofence: NOuseMovingGeofence: NOsyncGeofences: YESuseVisits: YESuseSignificantLocationChanges: NO
Class Methods
trackingOptionsFromDictionary
RadarTrackingOptions instance from a dictionary.
NSDictionary
required
A dictionary containing tracking options configuration.
RadarTrackingOptions instance, or nil if the dictionary is invalid.