Skip to content

AVRouting iOS xcode14.1 b3

Israel Soto edited this page Sep 27, 2022 · 1 revision

#AVRouting.framework

diff -ruN /Applications/Xcode_14.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomDeviceRoute.h /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomDeviceRoute.h
--- /Applications/Xcode_14.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomDeviceRoute.h	2022-09-09 10:37:58.000000000 -0500
+++ /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomDeviceRoute.h	2022-09-23 14:03:42.000000000 -0500
@@ -24,8 +24,8 @@
 
 /*!
 	@property 	networkEndpoint
-	@abstract	An nw_endpoint_t to which clients can establish a connection.
-	@discussion Use Network.opaque() to convert an nw_endpoint_t to an NWEndpoint in Swift.
+	@abstract	An `nw_endpoint_t` to which clients can establish a connection.
+	@discussion Use Network.opaque() to convert an `nw_endpoint_t` to an NWEndpoint in Swift.
  */
 @property (nonatomic, nullable, readonly) nw_endpoint_t networkEndpoint API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
 
diff -ruN /Applications/Xcode_14.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h
--- /Applications/Xcode_14.1.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h	2022-09-09 10:37:58.000000000 -0500
+++ /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h	2022-09-22 09:19:34.000000000 -0500
@@ -16,6 +16,7 @@
 @class AVCustomDeviceRoute;
 @class AVCustomRoutingEvent;
 @class AVCustomRoutingActionItem;
+@class AVCustomRoutingPartialIP;
 @protocol AVCustomRoutingControllerDelegate;
 
 /*!
@@ -46,6 +47,12 @@
 @property (nonatomic, readonly) NSArray<AVCustomDeviceRoute *> *authorizedRoutes API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
 
 /*!
+    @property   knownRouteIPs
+    @abstract   An array of route IPs known to be on the local network.
+ */
+@property (nonatomic, strong) NSArray<AVCustomRoutingPartialIP *> *knownRouteIPs API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
+
+/*!
     @property   customActionItems
     @abstract   An array of custom action items to be added in the picker.
  */
@@ -120,4 +127,46 @@
 
 @end
 
+
+/*!
+    @class      AVCustomRoutingPartialIP
+    @abstract   Represents a full or partial IP address. To be used in conjunction with AVCustomRoutingController.knownRouteIPs
+ */
+API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos)
+@interface AVCustomRoutingPartialIP : NSObject
+
+/*!
+    @property   address
+    @abstract   Bytes of the IP address. A full or partial IP address for a device known to be on the network.
+    @discussion To create full known IP, the app would do the following:
+                    var anIPAddressInBytes:[Byte] = [192, 168, 10, 5]
+                    var address = NSData(bytes: anAddressInBytes, length: anAddressInBytes.count)
+                    var aMaskInBytes:[Byte] = [255, 255, 255, 255]
+                    var mask = NSData(bytes: aMaskInBytes, length: aMaskInBytes.count)
+                    var partialIP = AVCustomRoutingPartialIP(address: address, mask: mask)
+ */
+@property (readonly, copy, nonatomic) NSData *address API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
+
+/*!
+    @property   mask
+    @abstract   A mask representing how many octets of the ip address to respect.
+    @discussion An app can use this mask to only pass e.g. the last two bytes of the IP address. So instead of passing the full IP address, the app can pass just the last two bytes by masking the first two.
+                    var anIPAddressInBytes:[Byte] = [0, 0, 10, 5]
+                    var address = NSData(bytes: anAddressInBytes, length: anAddressInBytes.count)
+                    var aMaskInBytes:[Byte] = [0, 0, 255, 255]
+                    var mask = NSData(bytes: aMaskInBytes, length: aMaskInBytes.count)
+                    var partialIP =AVCustomRoutingPartialIP(address: address, mask: mask)
+ */
+@property (readonly, copy, nonatomic) NSData *mask API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
+
+/*!
+    @method     initWithAddress:mask:
+    @abstract   Initializes an IP fragment.
+ */
+- (instancetype)initWithAddress:(NSData *)address mask:(NSData *)mask API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
+
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
 NS_ASSUME_NONNULL_END
Clone this wiki locally