MCNearbyServiceBrowser.InvitePeer(MCPeerID, MCSession, NSData, Double) Method

Definition

Invites a remote peer to join the session.

[Foundation.Export("invitePeer:toSession:withContext:timeout:")]
public virtual void InvitePeer (MultipeerConnectivity.MCPeerID peerID, MultipeerConnectivity.MCSession session, Foundation.NSData context, double timeout);
abstract member InvitePeer : MultipeerConnectivity.MCPeerID * MultipeerConnectivity.MCSession * Foundation.NSData * double -> unit
override this.InvitePeer : MultipeerConnectivity.MCPeerID * MultipeerConnectivity.MCSession * Foundation.NSData * double -> unit

Parameters

peerID
MCPeerID

The remote peer being invited.

session
MCSession

The session to which the peer is being invited.

context
NSData

Arbitrary data that can aide the peer in analyzing the invitation.

This parameter can be null.

timeout
Double

The maximum time, in seconds, to wait for the peer (default value is 30).

Attributes

Applies to