EnergyScoreType

The data type for getting energy score data measured by the Samsung Health.

The energy score is the daily measurement of the user's physical and mental readiness. Analysis of the user's sleep, activity, and heart rate is used to calculate the score for the upcoming day. For more information, go to the Samsung Health app's Energy Score tracker.

Predefined instance

Using the following instance allows for obtaining energy score data with more concise code.

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 Permission for a code example. The EnergyScoreType provides read-only access.

Available operations

Data specifications

This data type includes the following properties.

PropertyDescription
uid[Mandatory]
The data's unique identifier assigned by Samsung Health.
startTime[Mandatory]
The timestamp representing the start of the day, specified as Instant.
zoneOffset[Mandatory]
The ZoneOffset for startTime and endTime.
dataSource[Mandatory]
The data's source information including the application package name and the device ID.
ENERGY_SCORE[Mandatory]
The energy score.

Since

1.0.0

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 energy score data.

Link copied to clipboard

Retrieves a ReadDataRequest instance to read energy score data.

Preferences Submitted

You have successfully updated your cookie preferences.