Enum HomeAuthorizationStatus

java.lang.Object
java.lang.Enum<HomeAuthorizationStatus>
com.codename1.home.HomeAuthorizationStatus
All Implemented Interfaces:
Comparable<HomeAuthorizationStatus>

public enum HomeAuthorizationStatus extends Enum<HomeAuthorizationStatus>

Whether the user has granted this app access to their home.

Unlike the health API, this question has an honest answer on every backend: HomeKit publishes HMHomeManagerAuthorizationStatus and the Google Home APIs publish the account and structure grant. There is no read/write split -- a home is authorized as a whole, and what an app may do to a particular accessory is a property of the accessory, not of the grant.

  • Enum Constant Details

  • Method Details

    • values

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