InsertDataRequest

InsertRequestrepresents a request for inserting HealthDataPoint which app creates to the Samsung Health app.
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 getInsertRequestBuilder() 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 InsertDataRequest instance.

Properties

Link copied to clipboard

The list of health data to insert.

Link copied to clipboard

The data type of this request.

Preferences Submitted

You have successfully updated your cookie preferences.