Enum NIErrorCode

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

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

    • UnsupportedPlatform

      public static final NIErrorCode UnsupportedPlatform
    • InvalidConfiguration

      public static final NIErrorCode InvalidConfiguration
    • SessionFailed

      public static final NIErrorCode SessionFailed
    • ResourceUsageTimeout

      public static final NIErrorCode ResourceUsageTimeout
    • ActiveSessionsLimitExceeded

      public static final NIErrorCode ActiveSessionsLimitExceeded
    • UserDidNotAllow

      public static final NIErrorCode UserDidNotAllow
  • Method Details

    • values

      public static NIErrorCode[] 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 NIErrorCode 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
    • getClassDomain

      public static String getClassDomain()
      Since:
      Available in iOS 14.0 and later.
    • value

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

      public static NIErrorCode 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