What's New / Health, Sensors & Motion

What's new in NearbyInteraction

+9 NewiOS

NearbyInteraction measures the relative position and distance between nearby devices using Ultra Wideband and related ranging sensors. Apps use it to track the direction, distance, and motion of peer devices and accessories.

The 27 SDK adds 9 APIs with no deprecations or removals. New is the DiscoveryMethod enum, exposed through a discoveryMethod property and matching initializers, along with the session inputs clusterInitiatorAddress, floorElevation, and updateMotionState. It also adds NIDLTDOAMeasurement.responderClockFrequencyOffset and NIDeviceCapability.supportsBluetoothChannelSounding.

New

9
var

clusterInitiatorAddress

NewiOS
open var clusterInitiatorAddress: Int { get }
var

discoveryMethod

NewiOS
open var discoveryMethod: NIDLTDOAConfiguration.DiscoveryMethod
var

floorElevation

NewiOS
open var floorElevation: NIDLTDOAMeasurement.FloorElevation? { get }
init

init

NewiOS
public init(bluetoothChannelSoundingIdentifier bluetoothIdentifier: UUID, previousBluetoothIdentifier: UUID?)
init

init

NewiOS
public init(networkIdentifier: Int, discoveryMethod: NIDLTDOAConfiguration.DiscoveryMethod)
func

updateMotionState

NewiOS
open func updateMotionState(_ motionState: NIMotionActivityState, forObjectWithToken token: NIDiscoveryToken)
var

NIDeviceCapability.supportsBluetoothChannelSounding

NewiOS
var supportsBluetoothChannelSounding: Bool { get }
enum

NIDLTDOAConfiguration.DiscoveryMethod

NewiOS
public enum DiscoveryMethod : Int, @unchecked Sendable
Declaration
public enum DiscoveryMethod : Int, @unchecked Sendable {

    case wifi = 0

    case bluetoothLowEnergy = 1
}
var

NIDLTDOAMeasurement.responderClockFrequencyOffset

NewiOS
public var responderClockFrequencyOffset: Double? { get }

No APIs match your filter.

← More in Health, Sensors & Motion