DataType.Companion

object DataType.Companion


Summary

Public fields

final @NonNull DataType

Absolute elevation between each reading expressed in meters in double format.

final @NonNull DataType

The duration of the time the Exercise was ACTIVE in seconds in long format.

final @NonNull Parcelable.Creator<@NonNull DataType>
final @NonNull DataType

The total number calories over a day in double format, where the previous day ends and a new day begins at 12:00 AM local time.

final @NonNull DataType

The total distance over a day in double format, where the previous day ends and a new day begins at 12:00 AM local time.

final @NonNull DataType

The total number floors climbed over a day in double format, where the previous day ends and a new day begins at 12:00 AM local time.

final @NonNull DataType

The total step count over a day in long format, where the previous day ends and a new day begins at 12:00 AM local time.

final @NonNull DataType

A distance delta traveled over declining ground between each reading expressed in meters in double format.

final @NonNull DataType

A duration delta representing the amount of time the user spent traveling over declining ground during the interval, expressed in seconds in long format.

final @NonNull DataType

A distance delta between each reading expressed in meters in double format.

final @NonNull DataType

A measure of the gain in elevation expressed in meters in double format.

final @NonNull DataType

A distance delta traveled over flat ground between each reading expressed in meters in double format.

final @NonNull DataType

A duration delta representing the amount of time the user spent traveling over flat ground during the interval, expressed in seconds in long format.

final @NonNull DataType

Number of floors climbed between each reading in double format

final @NonNull DataType

Current heart rate, in beats per minute in double format.

final @NonNull DataType

A distance delta traveled over inclining ground between each reading expressed in meters in double format.

final @NonNull DataType

A duration delta representing the amount of time the user spent traveling over inclining ground during the interval, expressed in seconds in long format.

final @NonNull DataType

Current latitude, longitude and optionally, altitude in double[] format.

final @NonNull DataType

Current pace.

final @NonNull DataType

The current rep count of the exercise in long format.

final @NonNull DataType

The duration during which the user was resting during an Exercise in seconds in long format.

final @NonNull DataType

Delta of running steps between each reading in long format.

final @NonNull DataType

Current speed over time.

final @NonNull DataType

Percentage of oxygen in the blood in double format.

final @NonNull DataType

Delta of steps between each reading in long format.

final @NonNull DataType

Current step rate in steps/minute in long format.

final @NonNull DataType

Count of swimming laps ins long format.

final @NonNull DataType

Delta of strokes between each reading of swimming strokes in long format.

final @NonNull DataType

Delta of total calories (including basal rate and activity) between each reading in double format.

final @NonNull DataType

Rate of oxygen consumption in double format.

final @NonNull DataType

Maximum rate of oxygen consumption measured during incremental exercise in double format.

final @NonNull DataType

Delta of walking steps between each reading in long format.

Public fields

ABSOLUTE_ELEVATION

public final @NonNull DataType ABSOLUTE_ELEVATION

Absolute elevation between each reading expressed in meters in double format.

ACTIVE_EXERCISE_DURATION

public final @NonNull DataType ACTIVE_EXERCISE_DURATION

The duration of the time the Exercise was ACTIVE in seconds in long format.

CREATOR

public final @NonNull Parcelable.Creator<@NonNull DataTypeCREATOR

DAILY_CALORIES

public final @NonNull DataType DAILY_CALORIES

The total number calories over a day in double format, where the previous day ends and a new day begins at 12:00 AM local time. Each DataPoint of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval might be greater than 24hrs.

DAILY_DISTANCE

public final @NonNull DataType DAILY_DISTANCE

The total distance over a day in double format, where the previous day ends and a new day begins at 12:00 AM local time. Each DataPoint of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval might be greater than 24hrs.

DAILY_FLOORS

public final @NonNull DataType DAILY_FLOORS

The total number floors climbed over a day in double format, where the previous day ends and a new day begins at 12:00 AM local time. Each DataPoint of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval might be greater than 24hrs.

DAILY_STEPS

public final @NonNull DataType DAILY_STEPS

The total step count over a day in long format, where the previous day ends and a new day begins at 12:00 AM local time. Each DataPoint of this type will cover the interval from the start of day to now. In the event of time-zone shifts, the interval might be greater than 24hrs.

DECLINE_DISTANCE

public final @NonNull DataType DECLINE_DISTANCE

A distance delta traveled over declining ground between each reading expressed in meters in double format.

DECLINE_DURATION

public final @NonNull DataType DECLINE_DURATION

A duration delta representing the amount of time the user spent traveling over declining ground during the interval, expressed in seconds in long format.

DISTANCE

public final @NonNull DataType DISTANCE

A distance delta between each reading expressed in meters in double format.

ELEVATION_GAIN

public final @NonNull DataType ELEVATION_GAIN

A measure of the gain in elevation expressed in meters in double format. Elevation losses are not counted in this metric (so it will only be positive or 0).

FLAT_GROUND_DISTANCE

public final @NonNull DataType FLAT_GROUND_DISTANCE

A distance delta traveled over flat ground between each reading expressed in meters in double format.

FLAT_GROUND_DURATION

public final @NonNull DataType FLAT_GROUND_DURATION

A duration delta representing the amount of time the user spent traveling over flat ground during the interval, expressed in seconds in long format.

FLOORS

public final @NonNull DataType FLOORS

Number of floors climbed between each reading in double format

HEART_RATE_BPM

public final @NonNull DataType HEART_RATE_BPM

Current heart rate, in beats per minute in double format.

Accuracy for a DataPoint of type DataType.HEART_RATE_BPM is represented by HrAccuracy.

INCLINE_DISTANCE

public final @NonNull DataType INCLINE_DISTANCE

A distance delta traveled over inclining ground between each reading expressed in meters in double format.

INCLINE_DURATION

public final @NonNull DataType INCLINE_DURATION

A duration delta representing the amount of time the user spent traveling over inclining ground during the interval, expressed in seconds in long format.

LOCATION

public final @NonNull DataType LOCATION

Current latitude, longitude and optionally, altitude in double[] format. Latitude at index DataPoints.LOCATION_DATA_POINT_LATITUDE_INDEX, longitude at index DataPoints.LOCATION_DATA_POINT_LONGITUDE_INDEX and if available, altitude at index DataPoints.LOCATION_DATA_POINT_ALTITUDE_INDEX

Accuracy for a DataPoint of type DataType.LOCATION is represented by LocationAccuracy.

PACE

public final @NonNull DataType PACE

Current pace. In millisec/km in double format.

REP_COUNT

public final @NonNull DataType REP_COUNT

The current rep count of the exercise in long format.

RESTING_EXERCISE_DURATION

public final @NonNull DataType RESTING_EXERCISE_DURATION

The duration during which the user was resting during an Exercise in seconds in long format.

RUNNING_STEPS

public final @NonNull DataType RUNNING_STEPS

Delta of running steps between each reading in long format.

SPEED

public final @NonNull DataType SPEED

Current speed over time. In meters/second in double format.

SPO2

public final @NonNull DataType SPO2

Percentage of oxygen in the blood in double format. Valid range 0f - 100f.

STEPS

public final @NonNull DataType STEPS

Delta of steps between each reading in long format.

STEPS_PER_MINUTE

public final @NonNull DataType STEPS_PER_MINUTE

Current step rate in steps/minute in long format.

SWIMMING_LAP_COUNT

public final @NonNull DataType SWIMMING_LAP_COUNT

Count of swimming laps ins long format.

SWIMMING_STROKES

public final @NonNull DataType SWIMMING_STROKES

Delta of strokes between each reading of swimming strokes in long format.

TOTAL_CALORIES

public final @NonNull DataType TOTAL_CALORIES

Delta of total calories (including basal rate and activity) between each reading in double format.

VO2

public final @NonNull DataType VO2

Rate of oxygen consumption in double format. Valid range 0f - 100f.

VO2_MAX

public final @NonNull DataType VO2_MAX

Maximum rate of oxygen consumption measured during incremental exercise in double format. Valid range 0f - 100f.

WALKING_STEPS

public final @NonNull DataType WALKING_STEPS

Delta of walking steps between each reading in long format.