Skip to content

ThreadNetwork iOS xcode13.2 b2

Alex Soto edited this page Dec 6, 2021 · 3 revisions

#ThreadNetwork.framework https://github.com/xamarin/xamarin-macios/pull/13497

diff -ruN /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h /Applications/Xcode_13.2.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h
--- /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h	2021-10-22 20:31:45.000000000 -0400
+++ /Applications/Xcode_13.2.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THClient.h	2021-11-11 23:13:21.000000000 -0500
@@ -1,8 +1,7 @@
 //
 //  THClient.h
-//  CoreThreadRadio
+//  ThreadNetwork
 //
-//  Created by Venkat Manepalli on 10/26/20.
 //  Copyright © 2020 Apple. All rights reserved.
 //
 
@@ -34,10 +33,10 @@
  * Retrieve All Credentials, stored by the client
  *
  * @parameter
- * completion : Callback function to recieve all credentials
+ * completion : Callback function to receive all credentials
  *
  */
-- (void)retrieveAllCredentials:(void (^)(NSSet<THCredentials*>* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) NS_SWIFT_ASYNC_NAME(allCredentials());
+- (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());
 
 /*
  * @function deleteActiveDataSetRecordForBorderAgent
@@ -51,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));
+- (void)deleteCredentialsForBorderAgent:(NSData *)borderAgentID completion:(void (^)(NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst);
 
 /*
  * @function retrieveCredentialsForBorderAgent
@@ -60,10 +59,10 @@
  * Retrieve Credentials For The given Thread Border Agent identifier, stored by the client
  *
  * @parameter
- * completion : Callback function to recieve the matching active dataset record
+ * 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)) NS_SWIFT_ASYNC_NAME(credentials(forBorderAgentID:));
+- (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:));
 
 /*
  * @function storeCredentialsForBorderAgent
@@ -80,7 +79,7 @@
 
 - (void)storeCredentialsForBorderAgent:(NSData *)borderAgentID
               activeOperationalDataSet:(NSData *)activeOperationalDataSet
-                            completion:(void (^)(NSError* _Nullable error))completion API_AVAILABLE(ios(15.0));
+                            completion:(void (^)(NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst);
 
 /*
  * @function retrievePreferredCredentials
@@ -90,24 +89,24 @@
  * Invoking this API will result into UI Alert prompt seeking user's permission to access the credentials
  *
  * @parameter
- * completion : Callback function to recieve preferred network active dataset record
+ * 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)) NS_SWIFT_ASYNC_NAME(preferredCredentials());
+- (void)retrievePreferredCredentials:(void (^)(THCredentials* _Nullable credentials, NSError* _Nullable error))completion API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, macCatalyst) NS_SWIFT_ASYNC_NAME(preferredCredentials());
 
 /*
  * @function retrieveActiveDataSetRecordForExtendedPANID
  *
  * @discussion
- * Retrieve Credentials For The given Extedend-PAN Id
+ * Retrieve Credentials For The given Extended-PAN Id
  * Invoking this API will result into UI Alert prompt seeking user's permission to access the credentials
  *
  * @parameter
  * extendedPANID    : Extended PAN Id identifying the thread network
- * completion       : Callback function to recieve the matching active dataset record
+ * 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)) NS_SWIFT_ASYNC_NAME(credentials(forExtendedPANID:));
+- (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:));
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THCredentials.h /Applications/Xcode_13.2.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THCredentials.h
--- /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THCredentials.h	2021-10-22 20:31:45.000000000 -0400
+++ /Applications/Xcode_13.2.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/THCredentials.h	2021-11-11 23:13:20.000000000 -0500
@@ -15,7 +15,7 @@
 /*
  * @description:
  *
- * All the fileds represents Credentials field.
+ * All the fields represents Credentials field.
  *
  * Note :
  * If activeOperationalDataSet is nil after retrieving the credentials,
@@ -24,7 +24,7 @@
 
 /// networkName : Thread Network name
 @property (nonatomic, nullable, readonly) NSString *networkName;
-/// extendedPANID : Thread Network extendended PAN ID
+/// extendedPANID : Thread Network extended PAN ID
 @property (nonatomic, nullable, readonly) NSData *extendedPANID;
 /// extendedPANID : Active Thread Network Border Agent Identifier
 @property (nonatomic, nullable, readonly) NSData *borderAgentID;
diff -ruN /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/ThreadNetwork.h /Applications/Xcode_13.2.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/ThreadNetwork.h
--- /Applications/Xcode_13.2.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/ThreadNetwork.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.2.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ThreadNetwork.framework/Headers/ThreadNetwork.h	2021-11-09 08:06:06.000000000 -0500
@@ -0,0 +1,9 @@
+//
+//  ThreadNetwork.h
+//  ThreadNetwork
+//
+//  Copyright © 2021 Apple. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <ThreadNetwork/THClient.h>
Clone this wiki locally