Class: Toybox.UserProfile.Profile

Overview

The profile object contains user information.

Since:

API Level 1.0.0

Instance Member Summary collapse

Instance Attribute Details

var activityClass as Lang.Number or Null

Activity level from 0-100;

Since:

API Level 1.0.0

Returns:

var averageRestingHeartRate as Lang.Number or Null

The user's seven day average resting heart rate (bpm). Value may be null.

Since:

API Level 3.2.0

Supported Devices:

Returns:

var birthYear as Lang.Number or Null

Birth Year

Since:

API Level 1.0.0

Returns:

  • Lang.Number

    The birth year as a four digit number

var gender as UserProfile.Gender or Null

The Gender enum

Since:

API Level 1.0.0

Returns:

var height as Lang.Number or Null

Height in centimeters (cm)

Since:

API Level 1.0.0

Returns:

var restingHeartRate as Lang.Number or Null

Heart rate in beats per minute (bpm)

Since:

API Level 1.0.0

Returns:

var runningStepLength as Lang.Number or Null

Running step length in millimeters (mm)

Since:

API Level 1.0.0

Returns:

var sleepTime as Time.Duration or Null

Typical sleep time as configured by the user.

Stored as a Duration past local midnight.

Since:

API Level 1.0.0

Returns:

var vo2maxCycling as Lang.Number or Null

The user's VO2 Max value for cycling activity Value may be null

Since:

API Level 3.3.0

Supported Devices:

Returns:

var vo2maxRunning as Lang.Number or Null

The user's VO2 Max value for running activity Value may be null

Since:

API Level 3.3.0

Supported Devices:

Returns:

var wakeTime as Time.Duration or Null

Typical wake time as configured by the user.

Stored as a Duration past local midnight.

Since:

API Level 1.0.0

Returns:

var walkingStepLength as Lang.Number or Null

Walking step length in millimeters (mm)

Since:

API Level 1.0.0

Returns:

var weight as Lang.Number or Null

Weight in grams (g)

Since:

API Level 1.0.0

Returns:


Generated Jun 8, 2022 2:59:44 PM