Package apple.homekit

Class HMActionSet

  • All Implemented Interfaces:
    NSObject

    public class HMActionSet
    extends NSObject
    This class represents a collection of action objects that can be executed. The order of execution of these actions is undefined. API-Since: 8.0
    • Constructor Detail

      • HMActionSet

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static HMActionSet 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()
      • actionSetType

        @NotNull
        public @NotNull java.lang.String actionSetType()
        Specifies the action set type - user-defined, trigger-owned or one of the builtin types. Builtin action sets cannot be removed from the home. trigger-owned action sets cannot be executed, renamed or associated with another trigger. API-Since: 9.0
      • actions

        @NotNull
        public @NotNull NSSet<? extends HMAction> actions()
        Set of HMAction objects that represent the individual items of the action set.
      • addActionCompletionHandler

        public void addActionCompletionHandler​(@NotNull
                                               @NotNull HMAction action,
                                               @NotNull
                                               @NotNull HMActionSet.Block_addActionCompletionHandler completion)
        Adds an action to the action set.
        Parameters:
        action - Action object to add to the action set.
        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.
      • isExecuting

        public boolean isExecuting()
        Specifies whether the action set is currently executing or not.
      • lastExecutionDate

        @Nullable
        public @Nullable NSDate lastExecutionDate()
        Specifies the last execution date for the action set. API-Since: 10.0
      • name

        @NotNull
        public @NotNull java.lang.String name()
        The name of the action set.
      • removeActionCompletionHandler

        public void removeActionCompletionHandler​(@NotNull
                                                  @NotNull HMAction action,
                                                  @NotNull
                                                  @NotNull HMActionSet.Block_removeActionCompletionHandler completion)
        Removes an existing action from the action set.
        Parameters:
        action - Action object to remove from the action set.
        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.
      • uniqueIdentifier

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

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