-
Notifications
You must be signed in to change notification settings - Fork 515
NearbyInteraction macOS xcode15.0 rc
Manuel de la Pena edited this page Oct 19, 2023
·
3 revisions
#NearbyInteraction.framework https://github.com/xamarin/xamarin-macios/pull/19273
diff -ruN /Applications/Xcode_15.0.0-beta8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h /Applications/Xcode_15.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h
--- /Applications/Xcode_15.0.0-beta8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h 2023-08-22 12:04:23
+++ /Applications/Xcode_15.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h 2023-08-11 05:05:55
@@ -18,6 +18,11 @@
NI_EXPORT
@interface NIDiscoveryToken : NSObject <NSCopying, NSSecureCoding>
+/**
+ Get the protocol that describes nearby interaction capabilities of the device that generated this token.
+ @discussion Detailed description on the capability protocol is in NIDeviceCapability.h.
+ */
+@property (nonatomic, copy, readonly) id<NIDeviceCapability> deviceCapabilities API_AVAILABLE(ios(17.0), watchos(10.0), macos(14.0), tvos(17.0));
/** Unavailable */
- (instancetype)init NS_UNAVAILABLE;
@@ -67,6 +72,14 @@
*/
@property (nonatomic, assign, getter=isCameraAssistanceEnabled) BOOL cameraAssistanceEnabled API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos);
+/**
+If both peers are capable, enables extended distance measurement for the NISession that runs with this configuration
+@discussion:
+If true, the NISession will use extended distance measurement capabilities while ranging with a peer that is also capable of extended distance measurement
+This property is compatible with the cameraAssistanceEnabled property
+@note: Check supportsExtendedDistanceMeasurement property from deviceCapabilities properties on NISession and the deviceCapabilities property on the NIDiscoveryToken generated by the peer device to understand mutual capabilities
+*/
+@property (nonatomic, assign, getter=isExtendedDistanceMeasurementEnabled) BOOL extendedDistanceMeasurementEnabled API_AVAILABLE(ios(17.0), watchos(10.0), macos(14.0), tvos(17.0));
/** Unavailable */
- (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_15.0.0-beta8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h /Applications/Xcode_15.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h
--- /Applications/Xcode_15.0.0-beta8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h 2023-08-22 05:32:13
+++ /Applications/Xcode_15.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h 2023-08-08 00:53:46
@@ -29,6 +29,10 @@
*/
@property (nonatomic, readonly) BOOL supportsCameraAssistance;
+/**
+ Whether or not this device is capable of extended distance measurement capabilities
+ */
+@property (nonatomic, readonly) BOOL supportsExtendedDistanceMeasurement API_AVAILABLE(ios(17.0), watchos(10.0), macos(14.0), tvos(17.0));
@end
diff -ruN /Applications/Xcode_15.0.0-beta8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIError.h /Applications/Xcode_15.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIError.h
--- /Applications/Xcode_15.0.0-beta8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIError.h 2023-08-22 05:32:13
+++ /Applications/Xcode_15.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIError.h 2023-08-08 00:53:46
@@ -42,6 +42,15 @@
/** A Nearby Accessory session has been associated with a peer device (such as a Bluetooth peer) that is not available */
NIErrorCodeAccessoryPeerDeviceUnavailable API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos, tvos, macos) = -5882,
+ /**
+ The NINearbyPeerConfiguration provided is not compatible with the capabilities of the peer device
+ */
+ NIErrorCodeIncompatiblePeerDevice API_AVAILABLE(ios(17.0), watchos(10.0), macos(14.0), tvos(17.0)) = -5881,
+
+ /**
+ The maximum number of active extended distance measurement sessions was exceeded
+ */
+ NIErrorCodeActiveExtendedDistanceSessionsLimitExceeded API_AVAILABLE(ios(17.0), watchos(10.0), macos(14.0), tvos(17.0)) = -5880,
};
- 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