Package apple.matter
Class MTRDeviceController
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.matter.MTRDeviceController
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMTRDeviceController.Block_getBaseDeviceQueueCompletionHandlerstatic interfaceMTRDeviceController.Block_sharedControllerWithIdXpcConnectBlockstatic interfaceMTRDeviceController.Block_sharedControllerWithIDXpcConnectBlock-
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 protectedMTRDeviceController(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static MTRDeviceControlleralloc()static MTRDeviceControllerallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)@Nullable NSDataattestationChallengeForDeviceID(@NotNull NSNumber deviceID)Return the attestation challenge for the secure session of the device being commissioned.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)booleancancelCommissioningForNodeIDError(@NotNull NSNumber nodeID, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Cancel commissioning for the given node id.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()booleancommissionDeviceCommissioningParamsError(long deviceId, @NotNull MTRCommissioningParameters commissioningParams, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.booleancommissionNodeWithIDCommissioningParamsError(@NotNull NSNumber nodeID, @NotNull MTRCommissioningParameters commissioningParams, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Commission the node with the given node ID.static @Nullable NSDatacomputePASEVerifierForSetupPasscodeIterationsSaltError(@NotNull NSNumber setupPasscode, @NotNull NSNumber iterations, @NotNull NSData salt, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Compute a PASE verifier for the desired setup passcode.@Nullable NSDatacomputePaseVerifierIterationsSalt(int setupPincode, int iterations, @NotNull NSData salt)Deprecated.booleancontinueCommissioningDeviceIgnoreAttestationFailureError(@NotNull org.moe.natj.general.ptr.VoidPtr opaqueDeviceHandle, boolean ignoreAttestationFailure, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Call this method after MTRDeviceAttestationDelegate deviceAttestationFailedForController:opaqueDeviceHandle:error: or deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error: is called to continue commissioning the device.@Nullable NSNumbercontrollerNodeId()Deprecated.@Nullable NSNumbercontrollerNodeID()Return the Node ID assigned to the controller.static java.lang.StringdebugDescription_static()static @Nullable MTRReadParamsdecodeXPCReadParams(@Nullable NSDictionary<java.lang.String,?> params)Returns a deserialized read parameter object from an object received over XPCstatic @Nullable NSArray<? extends NSDictionary<java.lang.String,?>>decodeXPCResponseValues(@Nullable NSArray<? extends NSDictionary<java.lang.String,?>> values)Returns a decoded values object from a values object received from XPC for read, write and command interactionsstatic @Nullable MTRSubscribeParamsdecodeXPCSubscribeParams(@Nullable NSDictionary<java.lang.String,?> params)Returns a deserialized subscribe parameter object from an object received over XPCstatic java.lang.Stringdescription_static()@Nullable MTRBaseDevicedeviceBeingCommissionedWithNodeIDError(@NotNull NSNumber nodeID, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Get an MTRBaseDevice for a commissioning session that was set up for the given node ID.static @Nullable NSDictionary<java.lang.String,?>encodeXPCReadParams(@NotNull MTRReadParams params)Returns a serialized read parameter object to send over XPCstatic @Nullable NSArray<? extends NSDictionary<java.lang.String,?>>encodeXPCResponseValues(@Nullable NSArray<? extends NSDictionary<java.lang.String,?>> values)Returns an encoded values object to send over XPC for read, write and command interactionsstatic @Nullable NSDictionary<java.lang.String,?>encodeXPCSubscribeParams(@Nullable MTRSubscribeParams params)Returns a serialized subscribe parameter object to send over XPC@Nullable NSDatafetchAttestationChallengeForDeviceId(long deviceId)Deprecated.booleangetBaseDeviceQueueCompletionHandler(long deviceID, @NotNull dispatch_queue_t queue, @NotNull MTRDeviceController.Block_getBaseDeviceQueueCompletionHandler completionHandler)Deprecated.@Nullable MTRBaseDevicegetDeviceBeingCommissionedError(long deviceId, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.static longhash_static()MTRDeviceControllerinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisRunning()If true, the controller has not been shut down yet.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static MTRDeviceControllernew_objc()booleanopenPairingWindowDurationError(long deviceID, long duration, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.@Nullable java.lang.StringopenPairingWindowWithPINDurationDiscriminatorSetupPINError(long deviceID, long duration, long discriminator, long setupPIN, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.booleanpairDeviceAddressPortSetupPINCodeError(long deviceID, @NotNull java.lang.String address, char port, int setupPINCode, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.booleanpairDeviceDiscriminatorSetupPINCodeError(long deviceID, char discriminator, int setupPINCode, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.booleanpairDeviceOnboardingPayloadError(long deviceID, @NotNull java.lang.String onboardingPayload, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.voidpreWarmCommissioningSession()Optionally pre-warm the controller for setting up a commissioning session.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetDeviceControllerDelegateQueue(@NotNull MTRDeviceControllerDelegate delegate, @NotNull dispatch_queue_t queue)Set the Delegate for the device controller as well as the Queue on which the Delegate callbacks will be triggeredvoidsetNocChainIssuerQueue(@NotNull MTRNOCChainIssuer nocChainIssuer, @NotNull dispatch_queue_t queue)Deprecated.voidsetPairingDelegateQueue(@NotNull MTRDevicePairingDelegate delegate, @NotNull dispatch_queue_t queue)Deprecated.booleansetupCommissioningSessionWithDiscoveredDevicePayloadNewNodeIDError(@NotNull MTRCommissionableBrowserResult discoveredDevice, @NotNull MTRSetupPayload payload, @NotNull NSNumber newNodeID, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Set up a commissioning session for a device, using the provided discovered result to connect to it.booleansetupCommissioningSessionWithPayloadNewNodeIDError(@NotNull MTRSetupPayload payload, @NotNull NSNumber newNodeID, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Set up a commissioning session for a device, using the provided setup payload to discover it and connect to it.static voidsetVersion_static(long aVersion)static @NotNull MTRDeviceControllersharedControllerWithIdXpcConnectBlock(@Nullable java.lang.Object controllerID, @NotNull MTRDeviceController.Block_sharedControllerWithIdXpcConnectBlock xpcConnectBlock)Deprecated.static @NotNull MTRDeviceControllersharedControllerWithIDXpcConnectBlock(@Nullable java.lang.Object controllerID, @NotNull MTRDeviceController.Block_sharedControllerWithIDXpcConnectBlock xpcConnectBlock)Returns a shared device controller proxy for the controller object over XPC connection.voidshutdown()Shut down the controller.booleanstartBrowseForCommissionablesQueue(@NotNull MTRCommissionableBrowserDelegate delegate, @NotNull dispatch_queue_t queue)Start scanning for commissionable devices.booleanstopBrowseForCommissionables()Stop scanning for commissionable devices.booleanstopDevicePairingError(long deviceID, @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.static org.moe.natj.objc.Classsuperclass_static()static booleanuseStoredAccessor()Deprecated.static longversion_static()static @NotNull NSXPCInterfacexpcInterfaceForClientProtocol()Returns an NSXPCInterface configured for MTRDeviceControllerClientProtocol.static @NotNull NSXPCInterfacexpcInterfaceForServerProtocol()Returns an NSXPCInterface configured for MTRDeviceControllerServerProtocol.-
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 MTRDeviceController alloc()
-
allocWithZone
public static MTRDeviceController allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
attestationChallengeForDeviceID
@Nullable public @Nullable NSData attestationChallengeForDeviceID(@NotNull @NotNull NSNumber deviceID)
Return the attestation challenge for the secure session of the device being commissioned. Attempts to retrieve the attestation challenge for a commissionee with the given Device ID. Returns nil if given Device ID does not match an active commissionee, or if a Secure Session is not availale. API-Since: 16.4
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelCommissioningForNodeIDError
public boolean cancelCommissioningForNodeIDError(@NotNull @NotNull NSNumber nodeID, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Cancel commissioning for the given node id. This will shut down any existing commissioning session for that node id. API-Since: 16.4
-
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()
-
commissionDeviceCommissioningParamsError
@Deprecated public boolean commissionDeviceCommissioningParamsError(long deviceId, @NotNull @NotNull MTRCommissioningParameters commissioningParams, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use commissionNodeWithID:commissioningParams:error:
-
commissionNodeWithIDCommissioningParamsError
public boolean commissionNodeWithIDCommissioningParamsError(@NotNull @NotNull NSNumber nodeID, @NotNull @NotNull MTRCommissioningParameters commissioningParams, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Commission the node with the given node ID. The node ID must match the node ID that was used to set up the commissioning session. API-Since: 16.4
-
computePASEVerifierForSetupPasscodeIterationsSaltError
@Nullable public static @Nullable NSData computePASEVerifierForSetupPasscodeIterationsSaltError(@NotNull @NotNull NSNumber setupPasscode, @NotNull @NotNull NSNumber iterations, @NotNull @NotNull NSData salt, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Compute a PASE verifier for the desired setup passcode.
-
computePaseVerifierIterationsSalt
@Deprecated @Nullable public @Nullable NSData computePaseVerifierIterationsSalt(int setupPincode, int iterations, @NotNull @NotNull NSData salt)
Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use computePASEVerifierForSetupPasscode:iterations:salt:error:
-
continueCommissioningDeviceIgnoreAttestationFailureError
public boolean continueCommissioningDeviceIgnoreAttestationFailureError(@NotNull @NotNull org.moe.natj.general.ptr.VoidPtr opaqueDeviceHandle, boolean ignoreAttestationFailure, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Call this method after MTRDeviceAttestationDelegate deviceAttestationFailedForController:opaqueDeviceHandle:error: or deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error: is called to continue commissioning the device.
-
controllerNodeID
@Nullable public @Nullable NSNumber controllerNodeID()
Return the Node ID assigned to the controller. Will return nil if the controller is not running (and hence does not know its node id). API-Since: 16.4
-
controllerNodeId
@Deprecated @Nullable public @Nullable NSNumber controllerNodeId()
Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use controllerNodeID
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
decodeXPCReadParams
@Nullable public static @Nullable MTRReadParams decodeXPCReadParams(@Nullable @Nullable NSDictionary<java.lang.String,?> params)
Returns a deserialized read parameter object from an object received over XPC
-
decodeXPCResponseValues
@Nullable public static @Nullable NSArray<? extends NSDictionary<java.lang.String,?>> decodeXPCResponseValues(@Nullable @Nullable NSArray<? extends NSDictionary<java.lang.String,?>> values)
Returns a decoded values object from a values object received from XPC for read, write and command interactions
-
decodeXPCSubscribeParams
@Nullable public static @Nullable MTRSubscribeParams decodeXPCSubscribeParams(@Nullable @Nullable NSDictionary<java.lang.String,?> params)
Returns a deserialized subscribe parameter object from an object received over XPC
-
description_static
public static java.lang.String description_static()
-
deviceBeingCommissionedWithNodeIDError
@Nullable public @Nullable MTRBaseDevice deviceBeingCommissionedWithNodeIDError(@NotNull @NotNull NSNumber nodeID, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Get an MTRBaseDevice for a commissioning session that was set up for the given node ID. Returns nil if no such commissioning session is available. API-Since: 16.4
-
encodeXPCReadParams
@Nullable public static @Nullable NSDictionary<java.lang.String,?> encodeXPCReadParams(@NotNull @NotNull MTRReadParams params)
Returns a serialized read parameter object to send over XPC
-
encodeXPCResponseValues
@Nullable public static @Nullable NSArray<? extends NSDictionary<java.lang.String,?>> encodeXPCResponseValues(@Nullable @Nullable NSArray<? extends NSDictionary<java.lang.String,?>> values)
Returns an encoded values object to send over XPC for read, write and command interactions
-
encodeXPCSubscribeParams
@Nullable public static @Nullable NSDictionary<java.lang.String,?> encodeXPCSubscribeParams(@Nullable @Nullable MTRSubscribeParams params)
Returns a serialized subscribe parameter object to send over XPC
-
fetchAttestationChallengeForDeviceId
@Deprecated @Nullable public @Nullable NSData fetchAttestationChallengeForDeviceId(long deviceId)
Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use attestationChallengeForDeviceID
-
getBaseDeviceQueueCompletionHandler
@Deprecated public boolean getBaseDeviceQueueCompletionHandler(long deviceID, @NotNull @NotNull dispatch_queue_t queue, @NotNull @NotNull MTRDeviceController.Block_getBaseDeviceQueueCompletionHandler completionHandler)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use [MTRBaseDevice deviceWithNodeID:controller:]
-
getDeviceBeingCommissionedError
@Deprecated @Nullable public @Nullable MTRBaseDevice getDeviceBeingCommissionedError(long deviceId, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use deviceBeingCommissionedWithNodeID:error:
-
hash_static
public static long hash_static()
-
init
public MTRDeviceController 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)
-
isRunning
public boolean isRunning()
If true, the controller has not been shut down yet.
-
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 MTRDeviceController new_objc()
-
openPairingWindowDurationError
@Deprecated public boolean openPairingWindowDurationError(long deviceID, long duration, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use MTRDevice or MTRBaseDevice openCommissioningWindowWithSetupPasscode
-
openPairingWindowWithPINDurationDiscriminatorSetupPINError
@Deprecated @Nullable public @Nullable java.lang.String openPairingWindowWithPINDurationDiscriminatorSetupPINError(long deviceID, long duration, long discriminator, long setupPIN, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use MTRDevice or MTRBaseDevice openCommissioningWindowWithSetupPasscode
-
pairDeviceAddressPortSetupPINCodeError
@Deprecated public boolean pairDeviceAddressPortSetupPINCodeError(long deviceID, @NotNull @NotNull java.lang.String address, char port, int setupPINCode, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use setupCommissioningSessionWithPayload:newNodeID:error:
-
pairDeviceDiscriminatorSetupPINCodeError
@Deprecated public boolean pairDeviceDiscriminatorSetupPINCodeError(long deviceID, char discriminator, int setupPINCode, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use setupCommissioningSessionWithPayload:newNodeID:error:
-
pairDeviceOnboardingPayloadError
@Deprecated public boolean pairDeviceOnboardingPayloadError(long deviceID, @NotNull @NotNull java.lang.String onboardingPayload, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use setupCommissioningSessionWithPayload:newNodeID:error:
-
preWarmCommissioningSession
public void preWarmCommissioningSession()
Optionally pre-warm the controller for setting up a commissioning session. This may be called before setupCommissioningSessionWithPayload if it's known that a commissioning attempt will soon take place but the commissioning payload is not known yet. For example this may do a BLE scan in advance so results are ready earlier once the discriminator is known. 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)
-
setDeviceControllerDelegateQueue
public void setDeviceControllerDelegateQueue(@NotNull @NotNull MTRDeviceControllerDelegate delegate, @NotNull @NotNull dispatch_queue_t queue)Set the Delegate for the device controller as well as the Queue on which the Delegate callbacks will be triggered
-
setNocChainIssuerQueue
@Deprecated public void setNocChainIssuerQueue(@NotNull @NotNull MTRNOCChainIssuer nocChainIssuer, @NotNull @NotNull dispatch_queue_t queue)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please set the operationalCertificateIssuer in the MTRDeviceControllerStartupParams instead.
-
setPairingDelegateQueue
@Deprecated public void setPairingDelegateQueue(@NotNull @NotNull MTRDevicePairingDelegate delegate, @NotNull @NotNull dispatch_queue_t queue)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use setDeviceControllerDelegate:
-
setVersion_static
public static void setVersion_static(long aVersion)
-
setupCommissioningSessionWithDiscoveredDevicePayloadNewNodeIDError
public boolean setupCommissioningSessionWithDiscoveredDevicePayloadNewNodeIDError(@NotNull @NotNull MTRCommissionableBrowserResult discoveredDevice, @NotNull @NotNull MTRSetupPayload payload, @NotNull @NotNull NSNumber newNodeID, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Set up a commissioning session for a device, using the provided discovered result to connect to it. [@error] error indication if the commissioning session establishment can't start at all. The connection information for the device will be retrieved from the discovered device. A device discovered over DNS-SD will use the discovered IPs/ports, while a device discovered over BLE will use the underlying CBPeripheral. Then a PASE session will be established with the device, unless an error occurs. MTRDeviceControllerDelegate will be notified as follows: * Invalid connection information: onStatusUpdate with MTRCommissioningStatusFailed. * Commissioning session setup fails: onPairingComplete with an error. * Commissioning session setup succeeds: onPairingComplete with no error. Once a commissioning session is set up, getDeviceBeingCommissioned can be used to get an MTRBaseDevice and discover what sort of network credentials the device might need, and commissionDevice can be used to commission the device. API-Since: 17.0- Parameters:
discoveredDevice- a previously discovered device.payload- a setup payload (probably created from a QR code or numeric code onboarding payload).newNodeID- the planned node id for the node.
-
setupCommissioningSessionWithPayloadNewNodeIDError
public boolean setupCommissioningSessionWithPayloadNewNodeIDError(@NotNull @NotNull MTRSetupPayload payload, @NotNull @NotNull NSNumber newNodeID, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Set up a commissioning session for a device, using the provided setup payload to discover it and connect to it. [@error] error indication if discovery can't start at all (e.g. because the setup payload is invalid). The IP and port for the device will be discovered automatically based on the provided discriminator. Then a PASE session will be established with the device, unless an error occurs. MTRDeviceControllerDelegate will be notified as follows: * Discovery fails: onStatusUpdate with MTRCommissioningStatusFailed. * Discovery succeeds but commissioning session setup fails: onPairingComplete with an error. * Commissioning session setup succeeds: onPairingComplete with no error. Once a commissioning session is set up, getDeviceBeingCommissioned can be used to get an MTRBaseDevice and discover what sort of network credentials the device might need, and commissionDevice can be used to commission the device. API-Since: 16.2- Parameters:
payload- a setup payload (probably created from a QR code or numeric code onboarding payload).newNodeID- the planned node id for the node.
-
sharedControllerWithIDXpcConnectBlock
@NotNull public static @NotNull MTRDeviceController sharedControllerWithIDXpcConnectBlock(@Nullable @Nullable java.lang.Object controllerID, @NotNull @NotNull MTRDeviceController.Block_sharedControllerWithIDXpcConnectBlock xpcConnectBlock)
Returns a shared device controller proxy for the controller object over XPC connection.- Parameters:
controllerID- an implementation specific id in case multiple shared device controllers are available over XPC connectionxpcConnectBlock- block to connect to an XPC listener serving the shared device controllers in an implementation specific way API-Since: 16.4
-
sharedControllerWithIdXpcConnectBlock
@Deprecated @NotNull public static @NotNull MTRDeviceController sharedControllerWithIdXpcConnectBlock(@Nullable @Nullable java.lang.Object controllerID, @NotNull @NotNull MTRDeviceController.Block_sharedControllerWithIdXpcConnectBlock xpcConnectBlock)
Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use sharedControllerWithID:xpcConnectBlock:
-
shutdown
public void shutdown()
Shut down the controller. Calls to shutdown after the first one are NO-OPs. This must be called, either directly or via shutting down the MTRDeviceControllerFactory, to avoid leaking the controller.
-
startBrowseForCommissionablesQueue
public boolean startBrowseForCommissionablesQueue(@NotNull @NotNull MTRCommissionableBrowserDelegate delegate, @NotNull @NotNull dispatch_queue_t queue)Start scanning for commissionable devices. This method will fail if the controller factory is not running or the browse has already been started. API-Since: 17.0
-
stopBrowseForCommissionables
public boolean stopBrowseForCommissionables()
Stop scanning for commissionable devices. This method will fail if the controller factory is not running or the browse has not been started. API-Since: 17.0
-
stopDevicePairingError
@Deprecated public boolean stopDevicePairingError(long deviceID, @Nullable @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)Deprecated.API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please use cancelCommissioningForNodeID:error:
-
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()
-
xpcInterfaceForClientProtocol
@NotNull public static @NotNull NSXPCInterface xpcInterfaceForClientProtocol()
Returns an NSXPCInterface configured for MTRDeviceControllerClientProtocol. API-Since: 16.5
-
xpcInterfaceForServerProtocol
@NotNull public static @NotNull NSXPCInterface xpcInterfaceForServerProtocol()
Returns an NSXPCInterface configured for MTRDeviceControllerServerProtocol. API-Since: 16.5
-
-