T
T
The Cyprinus
Search…
SDK Configuration

Set Tracking in AppState

Kotlin
Java
1
Roam.setTrackingInAppState(STATE)
Copied!
1
Roam.setTrackingInAppState(STATE);
Copied!
Parameter
Description
STATE
RoamTrackingMode.AppState.FOREGROUND (or)
RoamTrackingMode.AppState.BACKGROUND (or)
RoamTrackingMode.AppState.ALWAYS_ON

Offline Location Tracking

Kotlin
Java
1
Roam.offlineLocationTracking(Boolean)
Copied!
1
Roam.offlineLocationTracking(Boolean);
Copied!
Parameter
Description
Boolean
true (default) -- Offline location enabled. false -- Offline location disabled.

Allow Mock Location

Cyprinus SDKs reject Mock Locations on the device by default.
Kotlin
Java
1
Roam.allowMockLocation(Boolean)
Copied!
1
Roam.allowMockLocation(Boolean);
Copied!
Parameter
Description
Boolean
false (default) -- Mock location disabled.
true -- Mock location enabled

Accuracy Engine

For enabling accuracy engine for Passive, Active, and Balanced tracking
Kotlin
Java
1
Roam.enableAccuracyEngine()
Copied!
1
Roam.enableAccuracyEngine();
Copied!
For Custom tracking modes, you can pass the desired accuracy values in integer ranging from 1 - 150m.
Kotlin
Java
1
Roam.enableAccuracyEngine("DESIRED-ACCURACY-VALUE")
Copied!
1
Roam.enableAccuracyEngine("DESIRED-ACCURACY-VALUE");
Copied!
For disabling accuracy engine
Kotlin
Java
1
Roam.disableAccuracyEngine()
Copied!
1
Roam.disableAccuracyEngine();
Copied!
Last modified 5mo ago