Instance Property

myPeerID

The local peer ID for this instance.

Declaration

iOS, Mac Catalyst, tvOS
@property(readonly, nonatomic) MCPeerID *myPeerID;
macOS
@property(readonly, atomic) MCPeerID *myPeerID;

Discussion

This value is set when you initialize the object, and cannot be changed later.

See Also

Configuring and Initialization

- initWithPeer:discoveryInfo:serviceType:

Initializes an advertiser object.

delegate

The delegate object that handles advertising-related events.

discoveryInfo

The info dictionary passed when this object was initialized.

serviceType

The service type that your app is advertising