WaterIntakeType

The data type representing water data specifications that a user intakes.

Predefined instance

Using the following instance allows for obtaining water intake data with more concise code.

Available aggregate operations

  • TOTAL
    : To get the total water intake amount for a data request.

Required permission

The user's consent is required to access this data type. Check the granted permissions and request permissions if the required permission is not granted yet with:

See a code example in here.

Available requests

Data specifications

This data type includes the following information.

PropertyDescription
uid[Mandatory]
The data's unique identifier assigned by the Samsung Health.
startTime[Mandatory]
The timestamp representing the start of measurement, specified as Instant, in milliseconds.
zoneOffset[Mandatory]
The ZoneOffset for startTime and endTime.
dataSource[Mandatory]
The data's source information including the application package name and which device's ID.
AMOUNT[Mandatory]
The amount of water intake in milliliters.

Since

1.0.0

See also

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Retrieves a ChangedDataRequest instance to read changed water intake data.

Link copied to clipboard

Retrieves a DeleteDataRequest instance to delete water intake data that the application inserted into the Samsung Health.

Link copied to clipboard

Retrieves an InsertDataRequest instance to insert new water intake data to the Samsung Health.

Link copied to clipboard

Retrieves a ReadDataRequest instance to read water intake data.

Link copied to clipboard

Retrieves an UpdateDataRequest instance to update water intake data that the application inserted into the Samsung Health.

Preferences Submitted

You have successfully updated your cookie preferences.