App-Support > healthstack.app.sync > SyncManager > Companion > initialize

initialize

[androidJvm]
fun initialize(context: Context, syncSpecs: List<SyncManager.HealthDataSyncSpec>)

Initializes the SyncManager instance with the given Context and list of HealthDataSyncSpecs.

Parameters

androidJvm

context The application context.
syncSpecs A list of HealthDataSyncSpec objects that specify the health data to synchronize.