DataSyncConfig
fun DataSyncConfig(isPeriodicSyncEnabled: Boolean, isBackgroundSyncEnabled: Boolean)
Content copied to clipboard
fun DataSyncConfig(isPeriodicSyncEnabled: Boolean, periodicSyncInterval: Long, isBackgroundSyncEnabled: Boolean)
Content copied to clipboard
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.