MCNearbyServiceBrowser.InvitePeer(MCPeerID, MCSession, NSData, Double) 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 MCPeerID

The remote peer being invited.

session
MCSession MCSession

The session to which the peer is being invited.

context
NSData NSData

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

This parameter can be null.

timeout
Double Double

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

Applies to