Skip to content

ThreadNetwork iOS xcode27.0 b1

Alex Soto edited this page Jun 9, 2026 · 1 revision

#ThreadNetwork.framework

diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h	2026-04-18 21:05:17
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h	2026-05-23 01:34:00
@@ -232,6 +232,30 @@
 /// > For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/swift/calling-objective-c-apis-asynchronously>.
 - (void)isPreferredNetworkAvailableWithCompletion:(void (^)(BOOL isPreferredAvailable))completion API_AVAILABLE(ios(16.4))   NS_SWIFT_ASYNC_NAME(isPreferredAvailable());
 
+/// 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.
+///
+/// - Parameters:
+///   - completion: The completion handler the framework calls when the
+///     one-time admin code becomes available.
+///
+/// > 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:
+/// >
+/// > ```swift
+/// > // Completion handler form:
+/// > func enableCredentialSharingMode(completionHandler: @escaping (String?, Error?) -> Void)
+/// >
+/// > // 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>.
+- (void)enableCredentialSharingMode:(void (^)(NSString * _Nullable adminCode, NSError * _Nullable error))completion API_AVAILABLE(ios(27.0));
 @end
 
 NS_ASSUME_NONNULL_END

Clone this wiki locally