DataSyncConfig

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

Data Sync configuration

Author

Umang Chamaria

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

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

Functions

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

Properties

isBackgroundSyncEnabled
Link copied to clipboard
var isBackgroundSyncEnabled: Boolean

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

isPeriodicSyncEnabled
Link copied to clipboard
var isPeriodicSyncEnabled: Boolean

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

periodicSyncInterval
Link copied to clipboard
var periodicSyncInterval: Long

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