AFNativeAdDelegate Protocol Reference

Conforms to NSObject
Declared in AFNativeAd.h

Overview

AFNativeAdDelegate provides additional information on actions performed on the native ad.

– nativeAdDidRecordImpression:

This delegate event informs you that the Appsfire SDK has recorded an impression on the view connected to the native ad.

- (void)nativeAdDidRecordImpression:(AFNativeAd *)nativeAd

Parameters

nativeAd

The AFNativeAd object sending the message.

Declared In

AFNativeAd.h

– nativeAdDidRecordClick:

This delegate event informs you that the Appsfire SDK has recorded a click on the view connected to the native ad.

- (void)nativeAdDidRecordClick:(AFNativeAd *)nativeAd

Parameters

nativeAd

The AFNativeAd object sending the message.

Declared In

AFNativeAd.h

– nativeAdBeginOverlayPresentation:

This delegate event informs you that an overlay will be added on top of the current view controller. You will not be able to interact with your interface until the end of the presentation and you may want to pause certain actions at this moment.

- (void)nativeAdBeginOverlayPresentation:(AFNativeAd *)nativeAd

Parameters

nativeAd

The AFNativeAd object sending the message.

Declared In

AFNativeAd.h

– nativeAdEndOverlayPresentation:

This delegate event informs you that the overlay that was presented has been removed and you will be able to re-interact with your interface. You may want to resume any action you paused during the process.

- (void)nativeAdEndOverlayPresentation:(AFNativeAd *)nativeAd

Parameters

nativeAd

The AFNativeAd object sending the message.

Declared In

AFNativeAd.h

– viewControllerForNativeAd:

This method should return the UIViewController used to host the StoreKit view controller. If not implemented, the StoreKit is not used and the user will be redirected to the App Store to download the app.

- (UIViewController *)viewControllerForNativeAd:(AFNativeAd *)nativeAd

Parameters

nativeAd

The AFNativeAd object requesting for the host UIViewController to contain the StoreKit.

Return Value

a UIViewController that will host the StoreKit.

Declared In

AFNativeAd.h