Enum HKErrorCode

java.lang.Object
java.lang.Enum<HKErrorCode>
org.robovm.apple.healthkit.HKErrorCode
All Implemented Interfaces:
Serializable, Comparable<HKErrorCode>, NSErrorCode, ValuedEnum

public enum HKErrorCode
extends Enum<HKErrorCode>
implements NSErrorCode
  • Enum Constant Details

    • NoError

      public static final HKErrorCode NoError
    • ErrorHealthDataUnavailable

      public static final HKErrorCode ErrorHealthDataUnavailable
    • ErrorHealthDataRestricted

      public static final HKErrorCode ErrorHealthDataRestricted
    • ErrorInvalidArgument

      public static final HKErrorCode ErrorInvalidArgument
    • ErrorAuthorizationDenied

      public static final HKErrorCode ErrorAuthorizationDenied
    • ErrorAuthorizationNotDetermined

      public static final HKErrorCode ErrorAuthorizationNotDetermined
    • ErrorDatabaseInaccessible

      public static final HKErrorCode ErrorDatabaseInaccessible
    • ErrorUserCanceled

      public static final HKErrorCode ErrorUserCanceled
    • ErrorAnotherWorkoutSessionStarted

      public static final HKErrorCode ErrorAnotherWorkoutSessionStarted
      Since:
      Available in iOS 9.0 and later.
    • ErrorUserExitedWorkoutSession

      public static final HKErrorCode ErrorUserExitedWorkoutSession
      Since:
      Available in iOS 9.0 and later.
    • ErrorRequiredAuthorizationDenied

      public static final HKErrorCode ErrorRequiredAuthorizationDenied
      Since:
      Available in iOS 12.0 and later.
    • ErrorNoData

      public static final HKErrorCode ErrorNoData
      Since:
      Available in iOS 14.0 and later.
  • Method Details

    • values

      public static HKErrorCode[] 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

      public static HKErrorCode 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
    • value

      public long value()
      Specified by:
      value in interface ValuedEnum
    • valueOf

      public static HKErrorCode valueOf​(long n)
      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:
      n - 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