iOS Guides | Samples

MultipeerConnectivity.MCPeerID Class

Identifies a device in a multipeer connectivity network.

See Also: MCPeerID

Syntax

[Foundation.Register("MCPeerID", true)]
[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 class MCPeerID : NSObject, INSCopying, INSSecureCoding, IDisposable

Remarks

MCPeerID.DisplayName must be unique among peers.

Related content

Requirements

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

The members of MultipeerConnectivity.MCPeerID are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor that assigns to the MCPeerID.DisplayName property.

Protected Constructors

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 Properties

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
DisplayNameString. The displayable name for the peer.

Public Methods

Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder