NINearbyObject
Location information for a peer device in an interaction session.
Declaration
class NINearbyObjectOverview
A nearby object refers to a peer Apple device or third-party accessory.
When the framework is ready to provide your app with information about a nearby object’s relative position, it calls your delegate’s session(_:didUpdate:) implementation.
If a session can’t provide peer direction or distance, it sets the values to nil. In Objective-C, the session uses the NINearbyObjectDirectionNotAvailable and NINearbyObjectDistanceNotAvailable values to indicate missing direction or distance.
For more information, see Initiating and maintaining a session.