public enum RecordingMethod

  1. Object
  2. Enum<RecordingMethod>
  3. RecordingMethod

ImplementsComparable<RecordingMethod>

How a sample came to exist. Health Connect records this explicitly; HealthKit infers it from sample metadata. Worth setting on writes – downstream apps use it to decide whether to trust a value.

Enum constants

UNKNOWNThe platform did not say.
MANUAL_ENTRYA human typed it in.
AUTOMATICRecorded passively in the background by a device or app, without the user starting anything.
ACTIVELY_RECORDEDRecorded while the user was deliberately tracking – during a workout they started, or a measurement they triggered.

Methods

public static RecordingMethod[] values()
public static RecordingMethod valueOf(String name)

Inherited methods

Enum constant details

UNKNOWN

UNKNOWN
The platform did not say.

MANUAL_ENTRY

MANUAL_ENTRY
A human typed it in.

AUTOMATIC

AUTOMATIC
Recorded passively in the background by a device or app, without the user starting anything.

ACTIVELY_RECORDED

ACTIVELY_RECORDED
Recorded while the user was deliberately tracking – during a workout they started, or a measurement they triggered.

Method details

values

public static RecordingMethod[] values()

valueOf

public static RecordingMethod valueOf(String name)