MMCustomEventNativeDelegate Protocol Reference

Conforms to NSObject
Declared in MMCustomEventNative.h

Overview

This protocol indicates a communication channel back to the placement, in order to communicate user events and other information that may be important for the display or management of the ad. Any implementers of the MMCustomEventNative protocol should make a best effort to send these messages where appropriate.

– customEventNativeLoadSucceeded: required method

This method should be called when an MMCustomEventNative succeeds in loading ad content.

- (void)customEventNativeLoadSucceeded:(id<MMCustomEventNative>)customEventNative

Parameters

customEventNative

The instance of custom event native that called the callback.

Discussion

This method should be called when an MMCustomEventNative succeeds in loading ad content.

Declared In

MMCustomEventNative.h

– customEventNative:loadFailedWithError: required method

This method should be called when an MMCustomEventNative fails to load an ad, with an appropriate error message.

- (void)customEventNative:(id<MMCustomEventNative>)customEventNative loadFailedWithError:(NSError *)error

Parameters

customEventNative

The instance of custom event native that called the callback.

error

The error which caused the load failure. It is recommended to use the standard error MMSDKErrorCode codes when passing an error back to an inline placement.

Discussion

This method should be called when an MMCustomEventNative fails to load an ad, with an appropriate error message.

Declared In

MMCustomEventNative.h

– customEventNativeWillLeaveApplication: required method

This method should be called whenever the native will cause the application to be put into the background.

- (void)customEventNativeWillLeaveApplication:(id<MMCustomEventNative>)customEventNative

Parameters

customEventNative

The instance of custom event native that called the callback.

Discussion

This method should be called whenever the native will cause the application to be put into the background.

Declared In

MMCustomEventNative.h

– customEventNativePresentationViewController: required method

The view controller that the publisher has set for presenting modal views.

- (UIViewController *)customEventNativePresentationViewController:(id<MMCustomEventNative>)customEventNative

Parameters

customEventNative

The instance of custom event native that called the callback.

Discussion

The view controller that the publisher has set for presenting modal views.

Declared In

MMCustomEventNative.h