Package apple.homekit

Class HMServiceGroup

  • All Implemented Interfaces:
    NSObject

    public class HMServiceGroup
    extends NSObject
    Used to describe a collection of HMService objects This class is used to group a collection of HMService objects. This allows for association of a set of accessory services into a group. Eg. A collection of lights can be grouped as the "Desk Lamps" service group.
    • Constructor Detail

      • HMServiceGroup

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • addServiceCompletionHandler

        public void addServiceCompletionHandler​(HMService service,
                                                HMServiceGroup.Block_addServiceCompletionHandler completion)
        Adds an service to this service group. The service and the group must be part of the same home. A service can be added to multiple service groups, e.g., a light can be added to "Desk Lamps" as well as "Dimmable Lamps" service groups.
        Parameters:
        service - Service to add to this group.
        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 service group.
      • removeServiceCompletionHandler

        public void removeServiceCompletionHandler​(HMService service,
                                                   HMServiceGroup.Block_removeServiceCompletionHandler completion)
        Removes an service from this service group.
        Parameters:
        service - Service to remove from this group.
        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.
      • services

        public NSArray<? extends HMService> services()
        Array of HMService objects that correspond to the services contained in this group.
      • uniqueIdentifier

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

        public void updateNameCompletionHandler​(java.lang.String name,
                                                HMServiceGroup.Block_updateNameCompletionHandler completion)
        This method is used to change the name of the service group.
        Parameters:
        name - New name for the service group.
        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.