HealthManager

interface HealthManager

Inheritors

HealthConnectManager

Functions

Link copied to clipboard
abstract suspend fun isAuthorized(readTypes: List<HealthDataType>, writeTypes: List<HealthDataType>): Result<Boolean>
Link copied to clipboard
abstract fun isAvailable(): Result<Boolean>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun isStoragePermissionGranted(): Boolean
Link copied to clipboard
abstract suspend fun readData(startTime: Instant, endTime: Instant, type: HealthDataType): Result<List<HealthRecord>>
Link copied to clipboard
abstract suspend fun requestAuthorization(readTypes: List<HealthDataType>, writeTypes: List<HealthDataType>): Result<Boolean>
Link copied to clipboard
abstract suspend fun revokeAuthorization(): Result<Unit>
Link copied to clipboard
abstract suspend fun writeData(records: List<HealthRecord>): Result<Unit>