finishAuthorization(for:settings:completionHandler:)
Finish authorization of a partially-setup accessory.
Declaration
func finishAuthorization(for accessory: ASAccessory, settings: ASAccessorySettings, completionHandler: @escaping @Sendable ((any Error)?) -> Void)func finishAuthorization(for accessory: ASAccessory, settings: ASAccessorySettings) async throwsDiscussion
Use this method in scenarios where an accessory has multiple wireless interfaces. For example, when an accessory has both Bluetooth and Wi-Fi, and your descriptor may only provides an SSID prefix. In this case, the Bluetooth interface onboards first and your app needs to then finish authorization with the full SSID.