DITRemotePeer

@interface DITRemotePeer : NSObject

A summary snapshot of the types of connections currently active to a remote peer.

  • The unique network identifier of the remote peer.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull networkId;
  • The human-readable device name of the remote peer. This defaults to the hostname but can be manually set by the application developer of the other peer. It is not necessarily unique.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull deviceName;
  • The connections that are currently active with the remote peer.

    Declaration

    Objective-C

    @property (nonatomic) NSArray<NSString *> *_Nonnull connections;
  • Received Signal Strength Indicator

    This value is primarily derived from Bluetooth Low Energy, so if the device’s Bluetooth settings are not enabled, then this value will be nil even though there might be a connection from another transport.

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSNumber *rssi;
  • An estimate of distance to the remote peer. This value is inaccurate. The environment, hardware, and several other factors can greatly affect this value. It is currently derived from RSSI.

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSNumber *approximateDistanceInMeters;