DataSyncConfig

class DataSyncConfig(val isPeriodicSyncEnabled: Boolean, val periodicSyncInterval: Long, val isBackgroundSyncEnabled: Boolean)

Data Sync configuration

Since

11.0.00

Parameters

isPeriodicSyncEnabled

If true SDK will sync tracked data periodically when the application is in foreground, default value true.

periodicSyncInterval

Time interval after which the SDK should sync data in the foreground. Set the value to -1 if you want to continue using the default value.

Unit - Seconds

isBackgroundSyncEnabled

If true, SDK will periodically attempt to sync data to the Server even when the application is in the background, default value true.

Constructors

Link copied to clipboard
constructor(isPeriodicSyncEnabled: Boolean, isBackgroundSyncEnabled: Boolean)
constructor(isPeriodicSyncEnabled: Boolean, periodicSyncInterval: Long, isBackgroundSyncEnabled: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

If true, SDK will periodically attempt to sync data to the Server even when the application is in the background. The default value is true.

Link copied to clipboard

If true SDK will sync tracked data periodically when the application is in the foreground. The default value is true.

Link copied to clipboard

Time interval after which the SDK should sync data in the foreground.

Functions

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