What's New / Connectivity & Hardware

What's new in ThreadNetwork

+2 NewiOS

ThreadNetwork manages access to Thread network credentials on Apple platforms. Apps and accessories read and store the credentials needed to join a Thread mesh network.

The 27 SDK adds 2 APIs and deprecates or removes nothing. One addition is enableCredentialSharingMode, which controls whether Thread credentials can be shared.

New

2
func

enableCredentialSharingMode

NewiOS
open func enableCredentialSharingMode(_ completion: @escaping @Sendable (String?, (any Error)?) -> Void)

Triggers Credential Share mode on a nearby eligible Apple Border Router (tvOS(27.0)).

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.

Concurrency Note: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declarations: Async form: func enableCredentialSharingMode() async throws -> String For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/swift/calling-objective-c-apis-asynchronously>.

Parameters

completion
The completion handler the framework calls when the one-time admin code becomes available.
func

enableCredentialSharingMode

NewiOS
open func enableCredentialSharingMode() async throws -> String

Triggers Credential Share mode on a nearby eligible Apple Border Router (tvOS(27.0)).

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.

Concurrency Note: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declarations: Async form: func enableCredentialSharingMode() async throws -> String For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/swift/calling-objective-c-apis-asynchronously>.

Parameters

completion
The completion handler the framework calls when the one-time admin code becomes available.

No APIs match your filter.

← More in Connectivity & Hardware