iOS Developer Library

Developer

MultipeerConnectivity Framework Reference MCAdvertiserAssistantDelegate Class Reference

Options
Deployment Target:

On This Page
Language:

MCAdvertiserAssistantDelegate

Inheritance


Not Applicable

Import Statement


Swift

import MultipeerConnectivity

Objective-C

@import MultipeerConnectivity;

Availability


Available in iOS 7.0 and later.

The MCAdvertiserAssistantDelegate protocol describes the methods that the delegate object for an MCAdvertiserAssistant instance can implement to handle advertising-related events.

  • Indicates that the advertiser assistant is about to present an invitation to the user.

    Declaration

    Objective-C

    - (void)advertiserAssitantWillPresentInvitation:(MCAdvertiserAssistant *)advertiserAssistant

    Parameters

    advertiserAssistant

    The advertiser assistant that is about to present an invitation to the user.

    Discussion

    This call is intended to allow your app to prepare for an invitation that will be presented to the user. For example, your app might stop performing computationally intensive UI updates for views that will be hidden by the invitation.

    Import Statement

    Objective-C

    @import MultipeerConnectivity;

    Availability

    Available in iOS 7.0 through iOS 7.1.

  • Indicates that the advertiser assistant finished showing the invitation to the user.

    Declaration

    Swift

    optional func advertiserAssistantDidDismissInvitation(_ advertiserAssistant: MCAdvertiserAssistant!)

    Objective-C

    - (void)advertiserAssistantDidDismissInvitation:(MCAdvertiserAssistant *)advertiserAssistant

    Parameters

    advertiserAssistant

    The advertiser assistant that finished showing an invitation.

    Discussion

    This call is intended to tell your app to resume any activity that it stopped doing while the invitation was onscreen. For example, it might resume computationally intensive UI updates for views that are no longer hidden by the invitation.

    Import Statement

    Objective-C

    @import MultipeerConnectivity;

    Swift

    import MultipeerConnectivity

    Availability

    Available in iOS 7.0 and later.