update

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.

When updating multiple data, the data update process handles each one sequentially. If one data update fails, none of them are updated.

Only data provided by the app can be updated. For example, if the data is recorded by the Samsung Health app, only the Samsung Health app can update it.

Verify that all properties of data to be updated 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

type

A data type to be updated.

builder

A lambda function to build the UpdateDataRequest according to the data type.

Preferences Submitted

You have successfully updated your cookie preferences.