public enum RecordingMethod
- Object
- Enum<RecordingMethod>
- 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
UNKNOWN | The platform did not say. |
MANUAL_ENTRY | A human typed it in. |
AUTOMATIC | Recorded passively in the background by a device or app, without the user starting anything. |
ACTIVELY_RECORDED | Recorded 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
UNKNOWNThe platform did not say.
MANUAL_ENTRY
MANUAL_ENTRYA human typed it in.
AUTOMATIC
AUTOMATICRecorded passively in the background by a device or app, without
the user starting anything.
ACTIVELY_RECORDED
ACTIVELY_RECORDEDRecorded 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)