YMANativeAdDelegate Protocol Reference

Conforms to NSObject
Declared in YMANativeAdDelegate.h

Overview

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

  1. Methods
    1. – viewControllerForPresentingModalView
    2. – nativeAdWillLeaveApplication:
    3. – nativeAd:willPresentScreen:
    4. – nativeAd:didDismissScreen:
    5. – closeNativeAd:

Methods

– viewControllerForPresentingModalView

UIViewController object that is used for showing a modal controller in response to the user’s interaction with the banner.

- (UIViewController *)viewControllerForPresentingModalView

Return Value

UIViewController object that is used for showing a modal controller in response to the user’s interaction with the banner.

– nativeAdWillLeaveApplication:

Notifies that the user switched from the ad to an app (for example, the browser).

- (void)nativeAdWillLeaveApplication:(null_unspecified id)ad

Parameters

ad

A reference to the object that invoked the method.

– nativeAd:willPresentScreen:

Notifies that the ad will show the modal UIViewController in response to the user interacting with the banner.

- (void)nativeAd:(null_unspecified id)ad
willPresentScreen:(nullable UIViewController *)viewController

Parameters

ad

A reference to the object that invoked the method.

viewController

Modal UIViewController.

– nativeAd:didDismissScreen:

Notifies that the ad finished showing the modal UIViewController in response to the user interacting with the banner.

- (void)nativeAd:(null_unspecified id)ad
didDismissScreen:(nullable UIViewController *)viewController

Parameters

ad

A reference to the object that invoked the method.

viewController

Modal UIViewController.

– closeNativeAd:

Notifies that the user has chosen a reason for closing the ad and the ad must be hidden.

- (void)closeNativeAd:(null_unspecified id)ad

Parameters

ad

A reference to the object that invoked the method.

Discussion

Note: Advertising will not be hidden. The developer must determine what to do with the ad after the reason for closing it is chosen.


Generated by appledoc 2.2.1 (build 1334).