Class: Toybox.UserProfile.Profile

Overview

The profile object contains user information.

Values may be null if the value has not been configured or cannot be calculated.

Since:

API Level 1.0.0

Instance Member Summary collapse

Instance Attribute Details

var activityClass as Lang.Number or Null

Activity level as configured by the user

Since:

API Level 1.0.0

Returns:

  • Lang.Number

    The activity level as a value from 0-100.

var averageRestingHeartRate as Lang.Number or Null

Average resting heart rate

This value is calculated based on historical data. It may be null if there is insufficient data to produce a result.

Since:

API Level 3.2.0

Supported Devices:

Returns:

  • Lang.Number

    The seven day average resting heart rate. Units are beats/min (bpm).

var birthYear as Lang.Number or Null

Birth year as configured by the user

Since:

API Level 1.0.0

Returns:

  • Lang.Number

    The birth year as a four digit Number.

var gender as UserProfile.Gender or Null

Gender as configured by the user

Since:

API Level 1.0.0

Returns:

var height as Lang.Number or Null

Height as configured by the user

Since:

API Level 1.0.0

Returns:

  • Lang.Number

    Height of the user in centimeters (cm)

var restingHeartRate as Lang.Number or Null

Restring heart rate as configured by the user

Since:

API Level 1.0.0

Returns:

  • Lang.Number

    The user's configured resting heart rate in beats per minute (bpm)

var runningStepLength as Lang.Number or Null

Running step length as configured by the user

Since:

API Level 1.0.0

Returns:

  • Lang.Number

    Running step length in millimeters (mm)

var sleepTime as Time.Duration or Null

Typical sleep time as configured by the user

Since:

API Level 1.0.0

Returns:

var vo2maxCycling as Lang.Number or Null

Cycling VO2 Max

This value is calculated based on historical data. It may be null if there is insufficient data to produce a result.

Since:

API Level 3.3.0

Supported Devices:

Returns:

  • Lang.Number

    The VO2 Max value for cycling activity. Units are mL/kg/min.

var vo2maxRunning as Lang.Number or Null

Running VO2 Max

This value is calculated based on historical data. It may be null if there is insufficient data to produce a result.

Since:

API Level 3.3.0

Supported Devices:

Returns:

  • Lang.Number

    The VO2 Max value for running activity. Units are mL/kg/min.

var wakeTime as Time.Duration or Null

Typical wake time as configured by the user

Since:

API Level 1.0.0

Returns:

var walkingStepLength as Lang.Number or Null

Walking step length as configured by the user

Since:

API Level 1.0.0

Returns:

  • Lang.Number

    Walking step length in millimeters (mm)

var weight as Lang.Number or Null

Weight as configured by the user

Since:

API Level 1.0.0

Returns:


Generated Dec 11, 2024, 8:58:43 AM