iOS Guides | Samples

MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate Class

A delegate object that exposes events relating to advertising and invitations for multipeer connectivity for a MCNearbyServiceAdvertiser object.

See Also: MCNearbyServiceAdvertiserDelegate

Syntax

[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("MCNearbyServiceAdvertiserDelegate", false)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public abstract class MCNearbyServiceAdvertiserDelegate : NSObject, IMCNearbyServiceAdvertiserDelegate, IDisposable

Remarks

For a discussion of the discovery process, see the remarks for MCSession.

Related content

Requirements

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

The members of MultipeerConnectivity.MCNearbyServiceAdvertiserDelegate are listed below.

See Also: NSObject

Protected Constructors

Default constructor, initializes a new instance of this class.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Methods

DidNotStartAdvertisingPeer(MCNearbyServiceAdvertiser, NSError)
Indicates that advertising peer availability failed.
abstract
DidReceiveInvitationFromPeer(MCNearbyServiceAdvertiser, MCPeerID, NSData, MCNearbyServiceAdvertiserInvitationHandler)
Indicates an invitation has been received to join a session.