Protocol

MCNearbyServiceAdvertiserDelegate

The MCNearbyServiceAdvertiserDelegate protocol describes the methods that the delegate object for an MCNearbyServiceAdvertiser instance can implement for handling events from the MCNearbyServiceAdvertiser class.

Declaration

@protocol MCNearbyServiceAdvertiserDelegate

Overview

No assumption should be made about which queue the delegate methods are called on. It is the receiver’s responsibility to ensure that any UIKit updates are called on the main thread.

Topics

Error Handling Delegate Methods

- advertiser:didNotStartAdvertisingPeer:

Called when advertisement fails.

Invitation Handling Delegate Methods

- advertiser:didReceiveInvitationFromPeer:withContext:invitationHandler:

Called when an invitation to join a session is received from a nearby peer.

Required.

Relationships

Inherits From