Comment on page
SDK Configuration (iOS)
The first step is to configure the iOS SDK.
Swift
Objective-C
Roam.setTrackingInAppState(STATE)
[Roam setTrackingInAppState:STATE];
Parameter | Description |
STATE | RoamTrackingState.Foreground (or)
RoamTrackingState.Background (or) RoamTrackingState.AlwaysOn |
Swift
Objective-C
Roam.offlineLocationTracking(Bool)
[Roam offlineLocationTracking];
Parameter | Description |
Bool | true (default) -- Offline location enabled.
false -- Offline location disabled. |
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()
Last modified 1mo ago