renameAccessory(_:options:completionHandler:)
Displays a view to rename an accessory.
Declaration
func renameAccessory(_ accessory: ASAccessory, options renameOptions: ASAccessory.RenameOptions = [], completionHandler: @escaping @Sendable ((any Error)?) -> Void)func renameAccessory(_ accessory: ASAccessory, options renameOptions: ASAccessory.RenameOptions = []) async throwsParameters
- accessory:
The accessory to rename.
- renameOptions:
Options that affect the behavior of the rename operation.
- completionHandler:
A block or closure that executes after the rename operation completes. The completion handler receives an Nserror instance if the rename operation encounters an error.
Discussion
To rename a Wi-Fi SSID with this method, use the option ssid.