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. API-Since: 8.0
    • Constructor Detail

      • HMServiceGroup

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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​(@NotNull
                                                @NotNull HMService service,
                                                @NotNull
                                                @NotNull 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

        @NotNull
        public @NotNull java.lang.String name()
        Name of the service group.
      • removeServiceCompletionHandler

        public void removeServiceCompletionHandler​(@NotNull
                                                   @NotNull HMService service,
                                                   @NotNull
                                                   @NotNull 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

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

        @NotNull
        public @NotNull NSUUID uniqueIdentifier()
        A unique identifier for the service group. API-Since: 9.0
      • updateNameCompletionHandler

        public void updateNameCompletionHandler​(@NotNull
                                                @NotNull java.lang.String name,
                                                @NotNull
                                                @NotNull 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.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.