UpdateDataRequest

UpdateRequest represents a request for updating HealthDataPoint which app creates to the Samsung Health app. The input data points to replace the existing data points based on UID or client ID.

The fields vary for each data type. They are listed in each data type as a form of Field. For example, com.samsung.android.sdk.health.data.request.DataType.NutritionType has com.samsung.android.sdk.health.data.request.DataType.NutritionType.MEAL_TYPE, com.samsung.android.sdk.health.data.request.DataType.NutritionType.CALORIES, and so on. Mandatory fields should be included in all the input data points and values should be in the valid range specified in each field description.

This class can be instantiated by its builders obtained from getUpdateRequestBuilder() method that each data type provides, not directly by a constructor. If there is no such a method, the data type does not support apps to write data because it is read-only.

Since

1.0.0

Types

Link copied to clipboard

A basic builder to create an UpdateDataRequest instance.

Link copied to clipboard

Entry of update request which consists of ID as a condition and DataPoint to be updated.

Properties

Link copied to clipboard

A map of a client's data ID and its corresponding data point. Here, the client data ID refers to the data ID managed by the app using Samsung Health Data SDK.

Link copied to clipboard

The data type of this request.

Link copied to clipboard

A map of UID and its respective data point.

Preferences Submitted

You have successfully updated your cookie preferences.