Enum RecordingMethod
- All Implemented Interfaces:
Comparable<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 Constant Summary
Enum ConstantsEnum ConstantDescriptionRecorded while the user was deliberately tracking -- during a workout they started, or a measurement they triggered.Recorded passively in the background by a device or app, without the user starting anything.A human typed it in.The platform did not say. -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordingMethodReturns the enum constant of this type with the specified name.static RecordingMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-