YMAAdViewDelegate Protocol Reference

Conforms to NSObject
Declared in YMAAdView.h

Overview

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

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

  1. Methods
    1. – viewControllerForPresentingModalView
    2. – adViewDidLoad:
    3. – adViewDidFailLoading:error:
    4. – adViewWillLeaveApplication:
    5. – adViewWillPresentScreen:
    6. – adViewDidDismissScreen:

Methods

– viewControllerForPresentingModalView

Returns a UIViewController object that AdView uses to show a modal controller in response to the user’s interaction with the banner.

- (UIViewController *)viewControllerForPresentingModalView

Return Value

The UIViewController object that AdView uses for showing a modal controller in response to the user’s interaction with the banner.

Discussion

Since a single UIViewController can’t show multiple modal controllers simultaneously, the returned UIViewController must be displayed in front of all the other ones.

– adViewDidLoad:

Notifies that the banner is loaded.

- (void)adViewDidLoad:(YMAAdView *)adView

Parameters

adView

A reference to the object of the YMAAdView class that invoked the method.

Discussion

At this time, you can add AdView if you haven’t done so yet.

– adViewDidFailLoading:error:

Notifies that the banner failed to load.

- (void)adViewDidFailLoading:(YMAAdView *)adView
                       error:(NSError *)error

Parameters

adView

A reference to the object of the YMAAdView class that invoked the method.

error

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

– adViewWillLeaveApplication:

Notifies that the app will become inactive now because the user clicked on the banner ad and is about to switch to a different application (Phone, App Store, and so on).

- (void)adViewWillLeaveApplication:(YMAAdView *)adView

Parameters

adView

A reference to the object of the YMAAdView class that invoked the method.

– adViewWillPresentScreen:

Notifies that the user has clicked on the banner and the in-app browser will open now.

- (void)adViewWillPresentScreen:(UIViewController *)viewController

Parameters

viewController

Modal UIViewController.

– adViewDidDismissScreen:

Notifies that the user has closed the embedded browser.

- (void)adViewDidDismissScreen:(UIViewController *)viewController

Parameters

viewController

Modal UIViewController.


Generated by appledoc 2.2.1 (build 1334).