MCNearbyServiceBrowser.InvitePeer(MCPeerID, MCSession, NSData, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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