Package apple.homekit

Class HMZone

  • All Implemented Interfaces:
    NSObject

    public class HMZone
    extends NSObject
    Used to describe a collection of HMRoom objects This class is used to group a collection of rooms. This allows for association of a set of rooms into a group. Eg. "Living Room" and "Kitchen" rooms can be grouped together in the "Downstairs" zone.
    • Constructor Detail

      • HMZone

        protected HMZone​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static HMZone alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • addRoomCompletionHandler

        public void addRoomCompletionHandler​(HMRoom room,
                                             HMZone.Block_addRoomCompletionHandler completion)
        Adds a room to a zone. Both the room and the zone should be part of the home. A room can be added to multiple zones, e.g., a room "Kitchen" can be added to "Downstairs" as well as "Outdoor" zones.
        Parameters:
        room - Room to add to this zone.
        completion - Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success.
      • name

        public java.lang.String name()
        Name of the zone.
      • removeRoomCompletionHandler

        public void removeRoomCompletionHandler​(HMRoom room,
                                                HMZone.Block_removeRoomCompletionHandler completion)
        Removes a room from the zone.
        Parameters:
        room - Room to remove from this zone.
        completion - Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success.
      • rooms

        public NSArray<? extends HMRoom> rooms()
        Array of HMRoom objects that correspond to the rooms contained in this zone.
      • uniqueIdentifier

        public NSUUID uniqueIdentifier()
        A unique identifier for the zone.
      • updateNameCompletionHandler

        public void updateNameCompletionHandler​(java.lang.String name,
                                                HMZone.Block_updateNameCompletionHandler completion)
        This method is used to change the name of the zone.
        Parameters:
        name - New name for the zone.
        completion - Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success.