YMAInterstitialDelegate Protocol Reference

Conforms to NSObject
Declared in YMAInterstitialController.h

Overview

The protocol defines the methods of the delegate that monitors ads.

Methods are called by an object of the YMAInterstitialController class when its state changes.

  1. Methods
    1. – interstitialDidLoadAd:
    2. – interstitialDidFailToLoadAd:error:
    3. – interstitialWillLeaveApplication:
    4. – interstitialDidFailToPresentAd:error:
    5. – interstitialWillAppear:
    6. – interstitialDidAppear:
    7. – interstitialWillDisappear:
    8. – interstitialDidDisappear:
    9. – interstitialWillPresentScreen:

Methods

– interstitialDidLoadAd:

Notifies that the ad loaded successfully.

- (void)interstitialDidLoadAd:(YMAInterstitialController *)interstitial

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

– interstitialDidFailToLoadAd:error:

Notifies that the ad failed to load.

- (void)interstitialDidFailToLoadAd:(YMAInterstitialController *)interstitial
                              error:(NSError *)error

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

error

Information about the error (for details, see YMAAdErrorCode).

– interstitialWillLeaveApplication:

Notifies that the app will run in the background now because the user clicked on the ad and is about to switch to a different app (Phone, App Store, and so on).

- (void)interstitialWillLeaveApplication:(YMAInterstitialController *)interstitial

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

– interstitialDidFailToPresentAd:error:

Notifies that the ad can’t be displayed.

- (void)interstitialDidFailToPresentAd:(YMAInterstitialController *)interstitial
                                 error:(NSError *)error

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

error

Information about the error (for details, see YMAAdErrorCode).

– interstitialWillAppear:

Called before the interstitial ad appears.

- (void)interstitialWillAppear:(YMAInterstitialController *)interstitial

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

– interstitialDidAppear:

Called after the interstitial ad appears.

- (void)interstitialDidAppear:(YMAInterstitialController *)interstitial

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

– interstitialWillDisappear:

Called before hiding the interstitial ad.

- (void)interstitialWillDisappear:(YMAInterstitialController *)interstitial

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

– interstitialDidDisappear:

Called after hiding the interstitial ad.

- (void)interstitialDidDisappear:(YMAInterstitialController *)interstitial

Parameters

interstitial

A reference to an object of the YMAInterstitialController class that invoked the method.

– interstitialWillPresentScreen:

Notifies that the in-app browser will be displayed.

- (void)interstitialWillPresentScreen:(UIViewController *)webBrowser

Parameters

webBrowser

The in-app browser.


Generated by appledoc 2.2.1 (build 1334).