insertData

abstract suspend fun <T : DataPoint> insertData(request: InsertDataRequest<T>)

Inserts a set of data represented by the request into Samsung Health.

When multiple data points are inserted, the insertion process handles them sequentially. If any insertion fails, none of the data points are inserted.

Verify that all properties of data to be inserted are correctly set. Especially those marked as mandatory and ensure their values are within the valid range defined in the data specifications. Otherwise, this function will throw the ERR_INVALID_INPUT.

Since

1.0.0

Parameters

request

An InsertDataRequest instance including data to insert.

Preferences Submitted

You have successfully updated your cookie preferences.