App-Support > healthstack.app.sync > SyncManager

SyncManager

[androidJvm]
class SyncManager

SyncManager is a singleton class using Android's WorkManager for scheduled health data synchronization tasks. Each task is specified by a HealthDataSyncSpec, which includes the health data type and its sync interval.

Types

Name Summary
Companion

[androidJvm]
object Companion

HealthDataSyncSpec

[androidJvm]
data class HealthDataSyncSpec(val healthDataTypeString: String, val syncInterval: Long, val syncTimeUnit: TimeUnit)
A data class representing a specification for health data synchronization.

Functions

Name Summary
startBackgroundSync

[androidJvm]
fun startBackgroundSync()
Starts the background synchronization for the specified health data types.