MatterAddDeviceExtensionRequestHandler
The object that handles configuration and commissioning of a device into an ecosystem.
Declaration
@objc class MatterAddDeviceExtensionRequestHandlerMentioned in
Overview
This class facilitates the user interface flow during the setup of a new Matter device. Subclass this class and override its methods, except for beginRequest(with:). The principal class for the app’s extension declared by the NSPrincipalClass in the extension plist must inherit from this base class.
If the MatterAddDeviceRequest.Topology object in the request has two or more homes, the user interface flow displays a picker to allow selection of a home. If the object contains one home, that home is the selected home and the user interface flow doesn’t display a picker. If the object contains no home, then the user interface flow doesn’t display a picker, and any methods take a home parameter receive nil.
Topics
Creating the request handler
Configuring and validating the device
configureDevice(named:in:)validateDeviceCredential(_:)MatterAddDeviceExtensionRequestHandler.DeviceCredentialrooms(in:)
Commissioning the device
Selecting the Thread network
selectThreadNetwork(from:)MatterAddDeviceExtensionRequestHandler.ThreadScanResultMatterAddDeviceExtensionRequestHandler.ThreadNetworkAssociation