iOS Guides | Samples

MultipeerConnectivity.MCNearbyServiceBrowser.InvitePeer Method

Invites a remote peer to join the session.

Syntax

[Foundation.Export("invitePeer:toSession:withContext:timeout:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Void InvitePeer (MCPeerID peerID, MCSession session, NSData context, Double timeout)

Parameters

peerID
The remote peer being invited.
session
The session to which the peer is being invited.
context

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

This parameter can be null.

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

Requirements

Namespace: MultipeerConnectivity
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0