Package apple.matter

Class MTRClusterSwitch

  • All Implemented Interfaces:
    NSObject

    public class MTRClusterSwitch
    extends MTRCluster
    * Cluster Switch * This cluster exposes interactions with a switch device, for the purpose of using those interactions by other devices. Two types of switch devices are supported: latching switch (e.g. rocker switch) and momentary switch (e.g. push button), distinguished with their feature flags. Interactions with the switch device are exposed as attributes (for the latching switch) and as events (for both types of switches). An interested party MAY subscribe to these attributes/events and thus be informed of the interactions, and can perform actions based on this, for example by sending commands to perform an action such as controlling a light or a window shade. API-Since: 16.1
    • Constructor Detail

      • MTRClusterSwitch

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static MTRClusterSwitch 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()
      • initWithDeviceEndpointQueue

        @Deprecated
        public MTRClusterSwitch initWithDeviceEndpointQueue​(@NotNull
                                                            @NotNull MTRDevice device,
                                                            char endpoint,
                                                            @NotNull
                                                            @NotNull dispatch_queue_t queue)
        Deprecated.
        API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use initWithDevice:endpoindID:queue:
      • initWithDeviceEndpointIDQueue

        public MTRClusterSwitch initWithDeviceEndpointIDQueue​(@NotNull
                                                              @NotNull MTRDevice device,
                                                              @NotNull
                                                              @NotNull NSNumber endpointID,
                                                              @NotNull
                                                              @NotNull dispatch_queue_t queue)
        The queue is currently unused, but may be used in the future for calling completions for command invocations if commands are added to this cluster. API-Since: 16.4
      • 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)
      • readAttributeAcceptedCommandListWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeAcceptedCommandListWithParams​(@Nullable
                                                                                                           @Nullable MTRReadParams params)
        API-Since: 16.1
      • readAttributeAttributeListWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeAttributeListWithParams​(@Nullable
                                                                                                     @Nullable MTRReadParams params)
        API-Since: 16.1
      • readAttributeClusterRevisionWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeClusterRevisionWithParams​(@Nullable
                                                                                                       @Nullable MTRReadParams params)
        API-Since: 16.1
      • readAttributeCurrentPositionWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeCurrentPositionWithParams​(@Nullable
                                                                                                       @Nullable MTRReadParams params)
        API-Since: 16.1
      • readAttributeFeatureMapWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeFeatureMapWithParams​(@Nullable
                                                                                                  @Nullable MTRReadParams params)
        API-Since: 16.1
      • readAttributeGeneratedCommandListWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeGeneratedCommandListWithParams​(@Nullable
                                                                                                            @Nullable MTRReadParams params)
        API-Since: 16.1
      • readAttributeMultiPressMaxWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeMultiPressMaxWithParams​(@Nullable
                                                                                                     @Nullable MTRReadParams params)
        API-Since: 16.1
      • readAttributeNumberOfPositionsWithParams

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> readAttributeNumberOfPositionsWithParams​(@Nullable
                                                                                                         @Nullable MTRReadParams params)
        API-Since: 16.1
      • 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()