insertData

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

Inserts a set of data in the request into the Samsung Health app.

When inserting multiple data, the data insertion process handles each one sequentially. If one data insertion fails, none of them are inserted.

Verify that all properties of data to be inserted have been correctly set. Especially those marked as mandatory and ensure their values are within the available range as 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.