Interface > healthstack.healthdata.link > HealthDataLink

HealthDataLink

[androidJvm]
interface HealthDataLink

An interface for handling health data.

It has several methods for general health data client.

Functions

Name Summary
getChanges

[androidJvm]
abstract suspend fun getChanges(token: String, healthDataTypeName: String): Change
A method reading all events about changes generated after given changes token.

getChangesToken

[androidJvm]
abstract suspend fun getChangesToken(healthDataTypeName: String): String
A method requesting initial changes token.

getHealthData

[androidJvm]
abstract suspend fun getHealthData(startTime: Instant, endTime: Instant, healthDataTypeName: String): HealthData
A method reading health data.

hasAllPermissions

[androidJvm]
abstract suspend fun hasAllPermissions(): Boolean
A method checking if all permissions are acquired.

isIntervalData

[androidJvm]
abstract fun isIntervalData(healthDataName: String): Boolean
A method checking if the given health data type is Interval data.

requestPermissions

[androidJvm]
abstract suspend fun requestPermissions()
A method requesting all permissions.