Package-level declarations

Types

Link copied to clipboard

Contains helper methods.

Link copied to clipboard
object SdkVersion

Indicates the version code and version name of the SDK.

Functions

Link copied to clipboard
suspend fun <T : Any, S : AggregateRequest.Builder<T>> HealthDataStore.aggregate(aggregateOperation: AggregateOperation<T, S>, builder: suspend S.() -> S? = null): DataResponse<AggregatedData<T>>

Aggregates a set of data in the Samsung Health app with simplified code. It enables you to request an aggregate operation for a specific data type with building an AggregateRequest easily. To aggregate data asynchronously, use HealthDataStore.aggregateDataAsync.

Link copied to clipboard

Deletes a set of data from the Samsung Health app with simplified code. It enables you to delete health data with a specific data type and building a DeleteDataRequest easily. To delete data asynchronously, use HealthDataStore.deleteDataAsync.

Link copied to clipboard

Inserts a set of data into the Samsung Health app with simplified code. It enables you to insert health data with a specific data type and building an InsertDataRequest easily. To insert data asynchronously, use HealthDataStore.insertDataAsync.

Link copied to clipboard
suspend fun <T : DataPoint, S : ReadDataRequest.Builder<T>> HealthDataStore.read(type: DataType.Readable<T, S>, builder: suspend S.() -> S? = null): DataResponse<T>

Reads a set of data in the Samsung Health app with simplified code. It enables you to read health data with a specific data type and building a ReadDataRequest for that data type easily. To read data asynchronously, use HealthDataStore.readDataAsync.

Link copied to clipboard

Reads a set of changed data in the Samsung Health app with simplified code. It enables you to read changed health data with a specific data type and building a ChangedDataRequest for that data type easily. To read changed data asynchronously, use HealthDataStore.readChangesAsync.

Link copied to clipboard

Updates a set of data in the Samsung Health app with simplified code. It enables you to update health data with a specific data type and building a UpdateDataRequest easily. To update data asynchronously, use HealthDataStore.updateDataAsync.

Preferences Submitted

You have successfully updated your cookie preferences.