UserProfileDataType

The data type for getting the user profile data in the Samsung Health.

Predefined instance

Using the following instance allows for obtaining user profile 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 a code example in here. The UserProfileDataType provides read-only access.

Data specifications

This data type includes the following information.

PropertyDescription
DATE_OF_BIRTH[Mandatory]
The date of birth of the user.
HEIGHT[Mandatory]
The height value in centimeters.
WEIGHT[Mandatory]
The weight value in kilograms.
GENDER[Mandatory]
The gender of the user. It's presented with Gender.
NICKNAME[Mandatory]
The nickname of the user.

Since

1.0.0

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The gender type of the user. It is used in UserProfileDataType.GENDER.

Properties

Link copied to clipboard

Retrieves a ReadDataRequest instance to read the user profile data.

Preferences Submitted

You have successfully updated your cookie preferences.