SDK Configuration

Set Tracking in AppState

Swift
Objective-C
Roam.setTrackingInAppState(STATE)
[Roam setTrackingInAppState:STATE];
Parameter
Description
STATE
RoamTrackingState.Foreground (or) RoamTrackingState.Background (or)
RoamTrackingState.AlwaysOn

Offline Location Tracking

Swift
Objective-C
Roam.offlineLocationTracking(Bool)
[Roam offlineLocationTracking];
Parameter
Description
Bool
true (default) -- Offline location enabled. false -- Offline location disabled.

Accuracy Engine

For enabling accuracy engine for Passive, Active, and Balanced tracking,
Roam.enableAccuracyEngine()
For Custom tracking modes, you can pass the desired accuracy values in integers ranging from 1-150m.
Roam.enableAccuracyEngine("DESIRED-ACCURACY-VALUE")
For disabling accuracy engine,
Roam.disableAccuracyEngine()
Export as PDF
Copy link
On this page
Set Tracking in AppState
Offline Location Tracking
Accuracy Engine