com.samsung.android.service.health.tracking.data

Enum ExerciseState

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      PAUSE
      An enum value to represent that an exercise has been paused.
      RESUME
      An enum value to represent that an exercise has been resumed.
      START
      An enum value to represent that an exercise has been started.
      STOP
      An enum value to represent that an exercise has been ended.
    • Method Detail

      • values

        public static ExerciseState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ExerciseState c : ExerciseState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExerciseState valueOf(String name)
        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 name
        NullPointerException - if the argument is null