Instance Property


An array of all peers that are currently connected to this session.


iOS, Mac Catalyst, tvOS
@property(readonly, nonatomic) NSArray<MCPeerID *> *connectedPeers;
@property(readonly, atomic) NSArray<MCPeerID *> *connectedPeers;

See Also

Managing Peers Manually

- connectPeer:withNearbyConnectionData:

Call this method to connect a peer to the session when using your own service discovery code instead of an MCNearbyServiceBrowser or MCBrowserViewController object.

- cancelConnectPeer:

Cancels an attempt to connect to a peer.

- nearbyConnectionDataForPeer:withCompletionHandler:

Obtains connection data for the specified peer.