SyncConfig

open class SyncConfig

Set of constants that could be adjusted to modify frequency and triggers, for the API calls to "/device-settings" endpoint.

Functions

Link copied to clipboard
open fun asJson(): String
Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
@SerializedName(value = "sync_auto_enabled")
open val autoSyncIsEnabled: Boolean
Whether SDK should execute API call to _/device-settings_ when specific conditions are met or only on customer request.
Link copied to clipboard
@SerializedName(value = "sync_auto_enabled_launch")
open val shouldSyncOnApplicationInit: Boolean
If SDK should sync on onCreate call
Link copied to clipboard
@SerializedName(value = "sync_auto_enabled_pk")
open val shouldSyncOnGetInstanceCall: Boolean
If SDK should sync on getInstance call
Link copied to clipboard
@SerializedName(value = "sync_auto_enabled_tracking_active")
open val shouldSyncWhileTracking: Boolean
If SDK should sync while it's actively tracking
Link copied to clipboard
@SerializedName(value = "sync_auto_enabled_tracking_active_push_off")
open val shouldSyncWhileTrackingOnLowBattery: Boolean
If SDK should sync while it's tracking on low battery.
Link copied to clipboard
@SerializedName(value = "sync_auto_interval_debounce")
open val syncDebounceInterval: Int
Minimum interval in seconds, between consequent calls to `/device-settings` API endpoint
Link copied to clipboard
@SerializedName(value = "sync_auto_interval_tracking_active")
open val syncWhileTrackingInterval: Int
Interval between sync calls while tracking
Link copied to clipboard
@SerializedName(value = "sync_auto_interval_tracking_active_push_off")
open val syncWhileTrackingIntervalOnLowBattery: Int
Interval between sync calls while tracking on low battery