Package apple.matter
Class MTRBaseDevice
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.matter.MTRBaseDevice
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMTRBaseDevice(org.moe.natj.general.Pointer peer)
-
Method Summary
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static MTRBaseDevice alloc()
-
allocWithZone
public static MTRBaseDevice 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()
-
deregisterReportHandlersWithClientQueueCompletion
@Deprecated public void deregisterReportHandlersWithClientQueueCompletion(@NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_deregisterReportHandlersWithClientQueueCompletion completion)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Pease use deregisterReportHandlersWithQueue:completion:
-
deregisterReportHandlersWithQueueCompletion
public void deregisterReportHandlersWithQueueCompletion(@NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_deregisterReportHandlersWithQueueCompletion completion)Deregister all local report handlers for a remote device This method is applicable only for a remote device. For a local device, the stack has to be shutdown to stop report handlers. There could be multiple clients accessing a node through a remote controller object and hence it is not appropriate for one of those clients to shut down the entire stack to stop receiving reports. API-Since: 16.4
-
description_static
public static java.lang.String description_static()
-
deviceWithNodeIDController
@NotNull public static @NotNull MTRBaseDevice deviceWithNodeIDController(@NotNull @NotNull NSNumber nodeID, @NotNull @NotNull MTRDeviceController controller)
Create a device object with the given node id and controller. This will always succeed, even if there is no such node id on the controller's fabric, but attempts to actually use the MTRBaseDevice will fail (asynchronously) in that case. API-Since: 16.4
-
hash_static
public static long hash_static()
-
init
public MTRBaseDevice init()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
invokeCommandWithEndpointIDClusterIDCommandIDCommandFieldsTimedInvokeTimeoutQueueCompletion
public void invokeCommandWithEndpointIDClusterIDCommandIDCommandFieldsTimedInvokeTimeoutQueueCompletion(@NotNull @NotNull NSNumber endpointID, @NotNull @NotNull NSNumber clusterID, @NotNull @NotNull NSNumber commandID, @NotNull @NotNull java.lang.Object commandFields, @Nullable @Nullable NSNumber timeoutMs, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_invokeCommandWithEndpointIDClusterIDCommandIDCommandFieldsTimedInvokeTimeoutQueueCompletion completion)Invoke a command with a designated command path- Parameters:
commandFields- command fields object. The object must be a data-value NSDictionary object as described in the MTRDeviceResponseHandler. The attribute must be a Structure, i.e., the NSDictionary MTRTypeKey key must have the value MTRStructureValueType.timeoutMs- timeout in milliseconds for timed invoke, or nil.completion- response handler will receive either values or error. A path-specific error status from the command invocation will result in an error being passed to the completion, so values will only be passed in when the command succeeds. API-Since: 16.4
-
invokeCommandWithEndpointIdClusterIdCommandIdCommandFieldsTimedInvokeTimeoutClientQueueCompletion
@Deprecated public void invokeCommandWithEndpointIdClusterIdCommandIdCommandFieldsTimedInvokeTimeoutClientQueueCompletion(@NotNull @NotNull NSNumber endpointId, @NotNull @NotNull NSNumber clusterId, @NotNull @NotNull NSNumber commandId, @NotNull @NotNull java.lang.Object commandFields, @Nullable @Nullable NSNumber timeoutMs, @NotNull @NotNull dispatch_queue_t clientQueue, @NotNull @NotNull MTRBaseDevice.Block_invokeCommandWithEndpointIdClusterIdCommandIdCommandFieldsTimedInvokeTimeoutClientQueueCompletion completion)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use invokeCommandWithEndpointID:clusterID:commandID:commandFields:timedInvokeTimeout:queue:completion
-
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)
-
new_objc
public static MTRBaseDevice new_objc()
-
openCommissioningWindowWithDiscriminatorDurationQueueCompletion
public void openCommissioningWindowWithDiscriminatorDurationQueueCompletion(@NotNull @NotNull NSNumber discriminator, @NotNull @NotNull NSNumber duration, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_openCommissioningWindowWithDiscriminatorDurationQueueCompletion completion)Open a commissioning window on the device, using a random setup passcode. On success, completion will be called on queue with the MTRSetupPayload that can be used to commission the device.- Parameters:
discriminator- The discriminator to use for the commissionable advertisement.duration- Duration, in seconds, during which the commissioning window will be open. API-Since: 17.0
-
openCommissioningWindowWithSetupPasscodeDiscriminatorDurationQueueCompletion
public void openCommissioningWindowWithSetupPasscodeDiscriminatorDurationQueueCompletion(@NotNull @NotNull NSNumber setupPasscode, @NotNull @NotNull NSNumber discriminator, @NotNull @NotNull NSNumber duration, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_openCommissioningWindowWithSetupPasscodeDiscriminatorDurationQueueCompletion completion)Open a commissioning window on the device. On success, completion will be called on queue with the MTRSetupPayload that can be used to commission the device.- Parameters:
setupPasscode- The setup passcode to use for the commissioning window. See MTRSetupPayload's generateRandomSetupPasscode for generating a valid random passcode.discriminator- The discriminator to use for the commissionable advertisement.duration- Duration, in seconds, during which the commissioning window will be open. API-Since: 16.2
-
readAttributePathsEventPathsParamsQueueCompletion
public void readAttributePathsEventPathsParamsQueueCompletion(@Nullable @Nullable NSArray<? extends MTRAttributeRequestPath> attributePaths, @Nullable @Nullable NSArray<? extends MTREventRequestPath> eventPaths, @Nullable @Nullable MTRReadParams params, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_readAttributePathsEventPathsParamsQueueCompletion completion)Reads multiple attribute or event paths from the device. Nil is treated as an empty array for attributePaths and eventPaths. Lists of attribute and event paths to read can be provided via attributePaths and eventPaths. The completion will be called with an error if the entire read interaction fails. Otherwise it will be called with an array of values. This array may be empty (e.g. if no paths matched the wildcard paths passed in, or if empty lists of paths were passed in) or may include per-path errors if particular paths failed. If the sum of the lengths of attributePaths and eventPaths exceeds 9, the read may fail due to the device not supporting that many read paths. API-Since: 17.0
-
readAttributeWithEndpointIdClusterIdAttributeIdParamsClientQueueCompletion
@Deprecated public void readAttributeWithEndpointIdClusterIdAttributeIdParamsClientQueueCompletion(@Nullable @Nullable NSNumber endpointId, @Nullable @Nullable NSNumber clusterId, @Nullable @Nullable NSNumber attributeId, @Nullable @Nullable MTRReadParams params, @NotNull @NotNull dispatch_queue_t clientQueue, @NotNull @NotNull MTRBaseDevice.Block_readAttributeWithEndpointIdClusterIdAttributeIdParamsClientQueueCompletion completion)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use readAttributesWithEndpointID:clusterID:attributeID:params:queue:completion:
-
readAttributesWithEndpointIDClusterIDAttributeIDParamsQueueCompletion
public void readAttributesWithEndpointIDClusterIDAttributeIDParamsQueueCompletion(@Nullable @Nullable NSNumber endpointID, @Nullable @Nullable NSNumber clusterID, @Nullable @Nullable NSNumber attributeID, @Nullable @Nullable MTRReadParams params, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_readAttributesWithEndpointIDClusterIDAttributeIDParamsQueueCompletion completion)Reads attributes from the device. Nil values for endpointID, clusterID, attributeID indicate wildcards (e.g. nil attributeID means "read all the attributes from the endpoint(s) and cluster(s) that match endpointID/clusterID"). If all of endpointID, clusterID, attributeID are non-nil, a single attribute will be read. If all of endpointID, clusterID, attributeID are nil, all attributes on the device will be read. A non-nil attributeID along with a nil clusterID will only succeed if the attribute ID is for a global attribute that applies to all clusters. The completion will be called with an error if the entire read interaction fails. Otherwise it will be called with values, which may be empty (e.g. if no paths matched the wildcard) or may include per-path errors if particular paths failed. API-Since: 16.4
-
readEventsWithEndpointIDClusterIDEventIDParamsQueueCompletion
public void readEventsWithEndpointIDClusterIDEventIDParamsQueueCompletion(@Nullable @Nullable NSNumber endpointID, @Nullable @Nullable NSNumber clusterID, @Nullable @Nullable NSNumber eventID, @Nullable @Nullable MTRReadParams params, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_readEventsWithEndpointIDClusterIDEventIDParamsQueueCompletion completion)Reads events from the device. Nil values for endpointID, clusterID, eventID indicate wildcards (e.g. nil eventID means "read all the events from the endpoint(s) and cluster(s) that match endpointID/clusterID"). If all of endpointID, clusterID, eventID are non-nil, all the matching instances of a single event will be read. If all of endpointID, clusterID, eventID are nil, all events on the device will be read. The completion will be called with an error if the entire read interaction fails. Otherwise it will be called with values, which may be empty (e.g. if no paths matched the wildcard) or may include per-path errors if particular paths failed. API-Since: 16.4
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
sessionTransportType
public byte sessionTransportType()
The transport used by the current session with this device, or `MTRTransportTypeUndefined` if no session is currently active. API-Since: 16.4
-
setVersion_static
public static void setVersion_static(long aVersion)
-
subscribeAttributeWithEndpointIdClusterIdAttributeIdMinIntervalMaxIntervalParamsClientQueueReportHandlerSubscriptionEstablished
@Deprecated public void subscribeAttributeWithEndpointIdClusterIdAttributeIdMinIntervalMaxIntervalParamsClientQueueReportHandlerSubscriptionEstablished(@Nullable @Nullable NSNumber endpointId, @Nullable @Nullable NSNumber clusterId, @Nullable @Nullable NSNumber attributeId, @NotNull @NotNull NSNumber minInterval, @NotNull @NotNull NSNumber maxInterval, @Nullable @Nullable MTRSubscribeParams params, @NotNull @NotNull dispatch_queue_t clientQueue, @NotNull @NotNull MTRBaseDevice.Block_subscribeAttributeWithEndpointIdClusterIdAttributeIdMinIntervalMaxIntervalParamsClientQueueReportHandlerSubscriptionEstablished_7 reportHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeAttributeWithEndpointIdClusterIdAttributeIdMinIntervalMaxIntervalParamsClientQueueReportHandlerSubscriptionEstablished_8 subscriptionEstablishedHandler)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use subscribeToAttributesWithEndpointID:clusterID:attributeID:params:queue:reportHandler:subscriptionEstablished:
-
subscribeToAttributePathsEventPathsParamsQueueReportHandlerSubscriptionEstablishedResubscriptionScheduled
public void subscribeToAttributePathsEventPathsParamsQueueReportHandlerSubscriptionEstablishedResubscriptionScheduled(@Nullable @Nullable NSArray<? extends MTRAttributeRequestPath> attributePaths, @Nullable @Nullable NSArray<? extends MTREventRequestPath> eventPaths, @Nullable @Nullable MTRSubscribeParams params, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_subscribeToAttributePathsEventPathsParamsQueueReportHandlerSubscriptionEstablishedResubscriptionScheduled_4 reportHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeToAttributePathsEventPathsParamsQueueReportHandlerSubscriptionEstablishedResubscriptionScheduled_5 subscriptionEstablished, @Nullable @Nullable MTRBaseDevice.Block_subscribeToAttributePathsEventPathsParamsQueueReportHandlerSubscriptionEstablishedResubscriptionScheduled_6 resubscriptionScheduled)Subscribes to multiple attribute or event paths. Nil is treated as an empty array for attributePaths and eventPaths. Lists of attribute and event paths to subscribe to can be provided via attributePaths and eventPaths. The reportHandler will be called with an error if the subscription fails entirely (including when both attributePaths and eventPaths are empty). The reportHandler will be called with arrays of response-value dictionaries (which may be data or errors) as path-specific data is received. subscriptionEstablished will be called when the subscription is first successfully established (after the initial set of data reports has been delivered to reportHandler). If params allow automatic resubscription, it will be called any time resubscription succeeds. resubscriptionScheduled will be called if subscription drop is detected and params allow automatic resubscription. If the sum of the lengths of attributePaths and eventPaths exceeds 3, the subscribe may fail due to the device not supporting that many paths for a subscription. API-Since: 17.0
-
subscribeToAttributesWithEndpointIDClusterIDAttributeIDParamsQueueReportHandlerSubscriptionEstablished
public void subscribeToAttributesWithEndpointIDClusterIDAttributeIDParamsQueueReportHandlerSubscriptionEstablished(@Nullable @Nullable NSNumber endpointID, @Nullable @Nullable NSNumber clusterID, @Nullable @Nullable NSNumber attributeID, @Nullable @Nullable MTRSubscribeParams params, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_subscribeToAttributesWithEndpointIDClusterIDAttributeIDParamsQueueReportHandlerSubscriptionEstablished_5 reportHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeToAttributesWithEndpointIDClusterIDAttributeIDParamsQueueReportHandlerSubscriptionEstablished_6 subscriptionEstablished)Subscribes to the specified attributes on the device. Nil values for endpointID, clusterID, attributeID indicate wildcards (e.g. nil attributeID means "subscribe to all the attributes from the endpoint(s) and cluster(s) that match endpointID/clusterID"). If all of endpointID, clusterID, attributeID are non-nil, a single attribute will be subscribed to. If all of endpointID, clusterID, attributeID are nil, all attributes on the device will be subscribed to. A non-nil attributeID along with a nil clusterID will only succeed if the attribute ID is for a global attribute that applies to all clusters. The reportHandler will be called with an error if the subscription fails entirely. The reportHandler will be called with arrays of response-value dictionaries (which may be data or errors) as path-specific data is received. subscriptionEstablished will be called when the subscription is first successfully established (after the initial set of data reports has been delivered to reportHandler). If params allow automatic resubscription, it will be called any time resubscription succeeds. API-Since: 16.4
-
subscribeToEventsWithEndpointIDClusterIDEventIDParamsQueueReportHandlerSubscriptionEstablished
public void subscribeToEventsWithEndpointIDClusterIDEventIDParamsQueueReportHandlerSubscriptionEstablished(@Nullable @Nullable NSNumber endpointID, @Nullable @Nullable NSNumber clusterID, @Nullable @Nullable NSNumber eventID, @Nullable @Nullable MTRSubscribeParams params, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_subscribeToEventsWithEndpointIDClusterIDEventIDParamsQueueReportHandlerSubscriptionEstablished_5 reportHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeToEventsWithEndpointIDClusterIDEventIDParamsQueueReportHandlerSubscriptionEstablished_6 subscriptionEstablished)Subscribes to the specified events on the device. Nil values for endpointID, clusterID, eventID indicate wildcards (e.g. nil eventID means "subscribe to all the events from the endpoint(s) and cluster(s) that match endpointID/clusterID"). If all of endpointID, clusterID, eventID are non-nil, a single event will be subscribed to. If all of endpointID, clusterID, eventID are nil, all events on the device will be subscribed to. The reportHandler will be called with an error if the subscription fails entirely. The reportHandler will be called with arrays of response-value dictionaries (which may be data or errors) as path-specific data is received. subscriptionEstablished will be called when the subscription is first successfully established (after the initial set of data reports has been delivered to reportHandler). If params allow automatic resubscription, it will be called any time resubscription succeeds. API-Since: 16.4
-
subscribeWithQueueMinIntervalMaxIntervalParamsCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled
@Deprecated public void subscribeWithQueueMinIntervalMaxIntervalParamsCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled(@NotNull @NotNull dispatch_queue_t queue, char minInterval, char maxInterval, @Nullable @Nullable MTRSubscribeParams params, @Nullable @Nullable MTRAttributeCacheContainer attributeCacheContainer, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueMinIntervalMaxIntervalParamsCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_5 attributeReportHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueMinIntervalMaxIntervalParamsCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_6 eventReportHandler, @NotNull @NotNull MTRBaseDevice.Block_subscribeWithQueueMinIntervalMaxIntervalParamsCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_7 errorHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueMinIntervalMaxIntervalParamsCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_8 subscriptionEstablishedHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueMinIntervalMaxIntervalParamsCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_9 resubscriptionScheduledHandler)Deprecated.Deprecated MTRBaseDevice APIs. API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use subscribeWithQueue:params:clusterStateCacheContainer:attributeReportHandler:eventReportHandler:errorHandler:subscriptionEstablished:resubscriptionScheduled:
-
subscribeWithQueueParamsClusterStateCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled
public void subscribeWithQueueParamsClusterStateCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled(@NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRSubscribeParams params, @Nullable @Nullable MTRClusterStateCacheContainer clusterStateCacheContainer, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueParamsClusterStateCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_3 attributeReportHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueParamsClusterStateCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_4 eventReportHandler, @NotNull @NotNull MTRBaseDevice.Block_subscribeWithQueueParamsClusterStateCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_5 errorHandler, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueParamsClusterStateCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_6 subscriptionEstablished, @Nullable @Nullable MTRBaseDevice.Block_subscribeWithQueueParamsClusterStateCacheContainerAttributeReportHandlerEventReportHandlerErrorHandlerSubscriptionEstablishedResubscriptionScheduled_7 resubscriptionScheduled)Subscribe to receive attribute reports for everything (all endpoints, all clusters, all attributes, all events) on the device. A non-nil attribute cache container will cache attribute values, retrievable through the designated attribute cache container. attributeReportHandler will be called any time a data update is available (with a non-nil "value") The array passed to attributeReportHandler will contain MTRAttributeReport instances. Errors for specific paths, not the whole subscription, will be reported via those objects. eventReportHandler will be called any time an event is reported (with a non-nil "value") The array passed to eventReportHandler will contain MTREventReport instances. Errors for specific paths, not the whole subscription, will be reported via those objects. errorHandler will be called any time there is an error for the entire subscription (with a non-nil "error"), and terminate the subscription. This will generally not be invoked if auto-resubscription is enabled, unless there is a fatal error during a resubscription attempt. Both report handlers are not supported over XPC at the moment. The subscriptionEstablished block, if not nil, will be called once the subscription is established. This will be _after_ the first (priming) call to both report handlers. Note that if the MTRSubscribeParams are set to automatically resubscribe this can end up being called more than once. The resubscriptionScheduled block, if not nil, will be called if auto-resubscription is enabled, subscription loss is detected, and a resubscription is scheduled. This can be called multiple times in a row without an intervening subscriptionEstablished call if the resubscription attempts fail. API-Since: 16.4
-
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()
-
writeAttributeWithEndpointIDClusterIDAttributeIDValueTimedWriteTimeoutQueueCompletion
public void writeAttributeWithEndpointIDClusterIDAttributeIDValueTimedWriteTimeoutQueueCompletion(@NotNull @NotNull NSNumber endpointID, @NotNull @NotNull NSNumber clusterID, @NotNull @NotNull NSNumber attributeID, @NotNull @NotNull java.lang.Object value, @Nullable @Nullable NSNumber timeoutMs, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRBaseDevice.Block_writeAttributeWithEndpointIDClusterIDAttributeIDValueTimedWriteTimeoutQueueCompletion completion)Write to attribute in a designated attribute path- Parameters:
value- A data-value NSDictionary object as described in MTRDeviceResponseHandler.timeoutMs- timeout in milliseconds for timed write, or nil.completion- response handler will receive either values or error. A path-specific error status will get turned into an error passed to the completion, so values will only be passed in when the write succeeds. In that case, values will have the format documented in the definition of MTRDeviceResponseHandler and will be an array with a single element which is a dictionary that has a MTRAttributePathKey entry in it, whose value is the attribute path that was successfully written to. API-Since: 16.4
-
writeAttributeWithEndpointIdClusterIdAttributeIdValueTimedWriteTimeoutClientQueueCompletion
@Deprecated public void writeAttributeWithEndpointIdClusterIdAttributeIdValueTimedWriteTimeoutClientQueueCompletion(@NotNull @NotNull NSNumber endpointId, @NotNull @NotNull NSNumber clusterId, @NotNull @NotNull NSNumber attributeId, @NotNull @NotNull java.lang.Object value, @Nullable @Nullable NSNumber timeoutMs, @NotNull @NotNull dispatch_queue_t clientQueue, @NotNull @NotNull MTRBaseDevice.Block_writeAttributeWithEndpointIdClusterIdAttributeIdValueTimedWriteTimeoutClientQueueCompletion completion)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use writeAttributeWithEndpointID:clusterID:attributeID:value:timedWriteTimeout:queue:completion:
-
-