-
Notifications
You must be signed in to change notification settings - Fork 545
NearbyInteraction iOS xcode26.0 b1
Rolf Bjarne Kvinge edited this page Aug 4, 2025
·
2 revisions
#NearbyInteraction.framework
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h 2025-04-19 03:35:46
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIConfiguration.h 2025-05-24 07:32:50
@@ -137,6 +137,27 @@
@end
+/**
+ A session configuration that enables UWB Down Link Time Difference of Arrival(DL-TDoA) ranging with nearby anchors.
+ */
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, macos, visionos, macCatalyst)
+NI_EXPORT
+@interface NIDLTDOAConfiguration : NIConfiguration
+/**
+ A unique identifier for a network supporting UWB Down Link Time Difference of Arrival(DL-TDoA).
+ */
+@property (nonatomic, assign) NSInteger networkIdentifier;
+/**
+ Initializes a new configuration with a network identifier
+ */
+- (instancetype)initWithNetworkIdentifier:(NSInteger)networkIdentifier;
+
+/** Unavailable */
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDLTDOAMeasurement.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDLTDOAMeasurement.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDLTDOAMeasurement.h 1969-12-31 19:00:00
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDLTDOAMeasurement.h 2025-05-24 06:00:26
@@ -0,0 +1,89 @@
+//
+// NIDLTDOAMeasurement.h
+// NearbyInteraction
+//
+// Copyright © 2025 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <NearbyInteraction/NIExport.h>
+#import <simd/simd.h>
+
+/**
+ The coordinate types of DL-TDOA measurement updates that Nearby Interaction supports.
+ */
+
+API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, macos, visionos, macCatalyst)
+typedef NS_ENUM(NSInteger, NIDLTDOACoordinatesType) {
+ NIDLTDOACoordinatesTypeGeodetic = 0,
+ NIDLTDOACoordinatesTypeRelative = 1,
+};
+
+/**
+ The measurement types of DL-TDOA measurement updates that Nearby Interaction supports.
+ */
+
+API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, macos, visionos, macCatalyst)
+typedef NS_ENUM(NSInteger, NIDLTDOAMeasurementType) {
+ NIDLTDOAMeasurementTypePoll = 0,
+ NIDLTDOAMeasurementTypeResponse = 1,
+ NIDLTDOAMeasurementTypeFinal = 2,
+};
+
+/**
+ Represents a single measurement relative to a DL-TDOA anchor.
+*/
+NS_SWIFT_SENDABLE
+API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, macos, visionos, macCatalyst)
+NI_EXPORT
+@interface NIDLTDOAMeasurement : NSObject <NSCopying, NSSecureCoding>
+/**
+ Indicates the address of anchor of this measurement.
+*/
+@property (nonatomic, assign, readonly) NSUInteger address;
+
+/**
+ Indicates the type of this measurement.
+*/
+@property (nonatomic, assign, readonly) NIDLTDOAMeasurementType measurementType;
+
+/**
+ Indicates the transmission timestamp (in seconds).
+*/
+@property (nonatomic, assign, readonly) double transmitTime;
+
+/**
+ Indicates the reception timestamp (in seconds).
+*/
+@property (nonatomic, assign, readonly) double receiveTime;
+
+/**
+ Indicates the signal strength in dBm.
+*/
+@property (nonatomic, assign, readonly) double signalStrength;
+
+/**
+ Indicates the estimated carrier frequency offset (dimensionless).
+*/
+@property (nonatomic, assign, readonly) double carrierFrequencyOffset;
+
+/**
+ Inidicates the type of coordinates of this anchor.
+*/
+@property (nonatomic, assign, readonly) NIDLTDOACoordinatesType coordinatesType;
+
+/**
+ Indicates the anchor's coordinates:
+
+ When coordinatesType == NIDLTDOACoordinatesTypeGeodetic:
+ coordinates represent geodetic position in 3D space with format {latitude, longitude, altitude}.
+ When coordinatesType == NIDLTDOACoordinatesTypeRelative:
+ coordinates represent distances from anchor(s) along the 3 axes in 3D space with format {x, y, z}.
+ */
+@property (nonatomic, assign, readonly) simd_double3 coordinates;
+
+/** Unavailable */
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h 2025-04-21 00:20:57
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NIDeviceCapability.h 2025-05-24 06:00:26
@@ -34,6 +34,12 @@
*/
@property (nonatomic, readonly) BOOL supportsExtendedDistanceMeasurement API_AVAILABLE(ios(17.0), watchos(10.0), macos(14.0), tvos(17.0));
+
+/**
+ Whether or not this device is capable of participating in a nearby interaction DL-TDOA ranging.
+ */
+@property (nonatomic, readonly) BOOL supportsDLTDOAMeasurement API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, macos, visionos, macCatalyst);
+
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NISession.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NISession.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NISession.h 2025-04-19 03:35:46
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NISession.h 2025-05-24 06:00:26
@@ -10,6 +10,7 @@
#import <NearbyInteraction/NIConfiguration.h>
#import <NearbyInteraction/NIDeviceCapability.h>
#import <NearbyInteraction/NIExport.h>
+#import <NearbyInteraction/NIDLTDOAMeasurement.h>
#import <simd/simd.h>
NS_ASSUME_NONNULL_BEGIN
@@ -207,7 +208,16 @@
*/
- (void)session:(NISession *)session didUpdateAlgorithmConvergence:(NIAlgorithmConvergence *)convergence forObject:(NINearbyObject * _Nullable)object API_AVAILABLE(ios(16.0), watchos(9.0)) API_UNAVAILABLE(tvos, macos) NS_SWIFT_NAME(session(_:didUpdateAlgorithmConvergence:for:));
+/**
+ This is called when new updates about DL-TDOA measurement are available.
+
+ @note this will only be called after successfully running an NISession with an NIDLTDOAConfiguration.
+ @param session The session that updated NI DL-TDOA measurement.
+ @param measurements The measurements update from a NI DL-TDOA session
+ */
+- (void)session:(NISession *)session didUpdateDLTDOAMeasurements:(NSArray<__kindof NIDLTDOAMeasurement *> *)measurements NS_SWIFT_NAME(session(_:didUpdateDLTDOA:)) API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(watchos, tvos, macos, visionos, macCatalyst);
+
/**
The delegate may implement this method to be informed that the session started running.
@@ -222,6 +232,6 @@
Note that #2 and #3 can be monitored by other delegate methods such as -sessionWasSuspended: and -session:didInvalidateWithError:
*/
- (void)sessionDidStartRunning:(NISession *)session API_AVAILABLE(ios(16.0), watchos(9.0)) API_UNAVAILABLE(tvos, macos);
-@end
+@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NearbyInteraction.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NearbyInteraction.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NearbyInteraction.h 2025-04-21 00:20:57
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/NearbyInteraction.framework/Headers/NearbyInteraction.h 2025-05-24 06:00:25
@@ -12,5 +12,5 @@
#import <NearbyInteraction/NIDeviceCapability.h>
#import <NearbyInteraction/NINearbyObject.h>
#import <NearbyInteraction/NISession.h>
-
+#import <NearbyInteraction/NIDLTDOAMeasurement.h>
#import <NearbyInteraction/NIExport.h>