Interface > healthstack.backend.integration.healthdata > HealthDataSyncClient > sync

sync

[androidJvm]
abstract suspend fun sync(idToken: String, healthData: HealthData)

Used to transmit the user's health data to the backend. Backend can distinguish users through id token.

Parameters

androidJvm

idToken

An encrypted token containing the user's information issued when the logs in to the application.

healthData

Health data of users collected through the healthstack.healthdata.link.HealthDataLink.