Skip to content

ThreadNetwork iOS xcode13.4 rc

Alex Soto edited this page May 13, 2022 · 1 revision

#ThreadNetwork.framework

diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h /Applications/Xcode_13.4.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h	2022-02-23 07:58:15.000000000 -0500
+++ /Applications/Xcode_13.4.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h	2022-04-20 14:40:43.000000000 -0400
@@ -24,7 +24,7 @@
  * no parameters
  */
 
-- (instancetype)init;
+- (instancetype)init API_AVAILABLE(ios(15.0));
 
 /*
  * @function retrieveAllCredentials
@@ -107,6 +107,20 @@
  *
  */
 - (void)retrieveCredentialsForExtendedPANID:(NSData *)extendedPANID completion:( void (^)(THCredentials* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst) NS_SWIFT_ASYNC_NAME(credentials(forExtendedPANID:));
+/*
+ * @function checkPreferredNetworkForActiveOperationalDataset
+ *
+ * @discussion
+ * Returns true if the dataset matches to the preferred network
+ *
+ * @parameters
+ * activeOperationalDataSet : byte array of active operational dataset
+ * completion               : Callback function gives true if dataset matches to preferred network, else false
+ *
+ */
+
+- (void)checkPreferredNetworkForActiveOperationalDataset:(NSData *)activeOperationalDataSet
+                                           completion:(void (^)(BOOL isPreferred))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst) NS_SWIFT_ASYNC_NAME(isPreferred(forActiveOperationalDataset:));
 @end
 
 NS_ASSUME_NONNULL_END
Clone this wiki locally