-
Notifications
You must be signed in to change notification settings - Fork 516
ThreadNetwork iOS xcode14.0 beta1
Manuel de la Pena edited this page Jul 20, 2022
·
3 revisions
#ThreadNetwork.framework https://github.com/xamarin/xamarin-macios/pull/15555
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_14.0.0-beta.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_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h 2022-05-31 14:51:14.000000000 -0400
@@ -24,7 +24,7 @@
* no parameters
*/
-- (instancetype)init;
+- (instancetype)init API_AVAILABLE(ios(15.0));
/*
* @function retrieveAllCredentials
@@ -36,7 +36,7 @@
* completion : Callback function to receive all credentials
*
*/
-- (void)retrieveAllCredentials:(void (^)(NSSet<THCredentials*>* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst) NS_SWIFT_ASYNC_NAME(allCredentials());
+- (void)retrieveAllCredentials:(void (^)(NSSet<THCredentials*>* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) NS_SWIFT_ASYNC_NAME(allCredentials());
/*
* @function deleteActiveDataSetRecordForBorderAgent
@@ -50,7 +50,7 @@
* completion : Callback function to return the status of the delete operation
*
*/
-- (void)deleteCredentialsForBorderAgent:(NSData *)borderAgentID completion:(void (^)(NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst);
+- (void)deleteCredentialsForBorderAgent:(NSData *)borderAgentID completion:(void (^)(NSError* _Nullable error))completion API_AVAILABLE(ios(15.0));
/*
* @function retrieveCredentialsForBorderAgent
@@ -62,7 +62,7 @@
* completion : Callback function to receive the matching active dataset record
*
*/
-- (void)retrieveCredentialsForBorderAgent:(NSData *)borderAgentID completion:( void (^)(THCredentials* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst) NS_SWIFT_ASYNC_NAME(credentials(forBorderAgentID:));
+- (void)retrieveCredentialsForBorderAgent:(NSData *)borderAgentID completion:( void (^)(THCredentials* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) NS_SWIFT_ASYNC_NAME(credentials(forBorderAgentID:));
/*
* @function storeCredentialsForBorderAgent
@@ -79,7 +79,7 @@
- (void)storeCredentialsForBorderAgent:(NSData *)borderAgentID
activeOperationalDataSet:(NSData *)activeOperationalDataSet
- completion:(void (^)(NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst);
+ completion:(void (^)(NSError* _Nullable error))completion API_AVAILABLE(ios(15.0));
/*
* @function retrievePreferredCredentials
@@ -92,7 +92,7 @@
* completion : Callback function to receive preferred network active dataset record
*
*/
-- (void)retrievePreferredCredentials:(void (^)(THCredentials* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst) NS_SWIFT_ASYNC_NAME(preferredCredentials());
+- (void)retrievePreferredCredentials:(void (^)(THCredentials* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) NS_SWIFT_ASYNC_NAME(preferredCredentials());
/*
* @function retrieveActiveDataSetRecordForExtendedPANID
@@ -106,7 +106,22 @@
* completion : Callback function to receive the matching active dataset record
*
*/
-- (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:));
+- (void)retrieveCredentialsForExtendedPANID:(NSData *)extendedPANID completion:( void (^)(THCredentials* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) 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)) NS_SWIFT_ASYNC_NAME(isPreferred(forActiveOperationalDataset:));
@end
NS_ASSUME_NONNULL_END
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status