enableCredentialSharingMode(_:)
Triggers Credential Share mode on a nearby eligible Apple Border Router (tvOS(27.0)).
Declaration
func enableCredentialSharingMode(_ completion: @escaping @Sendable (String?, (any Error)?) -> Void)func enableCredentialSharingMode() async throws -> StringParameters
- completion:
The completion handler the framework calls when the one-time admin code becomes available.
Discussion
This method scans for Thread credential sharing capable Apple Border Routers, selects an eligible device, and requests to generate an ephemeral 9-digit code and start credential sharing mode.
When you call this method, an alert appears asking for user permission to access credentials.