Enum WorkoutEvent.Kind
- All Implemented Interfaces:
Comparable<WorkoutEvent.Kind>
- Enclosing class:
WorkoutEvent
What kind of moment an event marks.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA lap boundary.A user-placed marker.The platform detected that the user stopped moving.The platform detected that the user resumed moving.The session paused.The session resumed.The start or end of a named segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkoutEvent.KindReturns the enum constant of this type with the specified name.static WorkoutEvent.Kind[]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
-
LAP
A lap boundary. -
MARKER
A user-placed marker. -
SEGMENT
The start or end of a named segment. -
PAUSE
The session paused. -
RESUME
The session resumed. -
MOTION_PAUSED
The platform detected that the user stopped moving. -
MOTION_RESUMED
The platform detected that the user resumed moving.
-
-
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
-