iOS Guides | Samples

MultipeerConnectivity.MCNearbyServiceBrowserDelegate Class

A delegate object that exposes peer-discovery events for a MCNearbyServiceBrowser object.

See Also: MCNearbyServiceBrowserDelegate

Syntax

[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("MCNearbyServiceBrowserDelegate", 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 MCNearbyServiceBrowserDelegate : NSObject, IMCNearbyServiceBrowserDelegate, IDisposable

Remarks

For a discussion of peer discovery and connection, see MCSession remarks.

Methods of MCNearbyServiceBrowserDelegate are typically called by the system on a background thread. Application developers who wish to modify the user interface must use, for instance, NSObject.InvokeOnMainThread.

Related content

Requirements

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

The members of MultipeerConnectivity.MCNearbyServiceBrowserDelegate 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

DidNotStartBrowsingForPeers(MCNearbyServiceBrowser, NSError)
Indicates that browsing for peers failed.
abstract
FoundPeer(MCNearbyServiceBrowser, MCPeerID, NSDictionary)
Indicates that a peer has been found.
abstract
LostPeer(MCNearbyServiceBrowser, MCPeerID)
Indicates that a peer has been lost.