MMCustomEventInterstitialDelegate Protocol Reference

Conforms to NSObject
Declared in MMCustomEventInterstitial.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 MMCustomEventInterstitial protocol should make a best effort to send these messages where appropriate.

– customEventInterstitialLoadDidSucceed: required method

This method should be called when an interstitial load succeeds.

- (void)customEventInterstitialLoadDidSucceed:(id<MMCustomEventInterstitial>)customEventInterstitial

Parameters

customEventInterstitial

The instance of custom event interstitial that called the callback.

Discussion

This method should be called when an interstitial load succeeds.

Declared In

MMCustomEventInterstitial.h

– customEventInterstitial:loadDidFailWithError: required method

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

- (void)customEventInterstitial:(id<MMCustomEventInterstitial>)customEventInterstitial loadDidFailWithError:(NSError *)error

Parameters

customEventInterstitial

The instance of custom event interstitial 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 MMCustomEventInterstitial fails to load an ad, with an appropriate error message.

Declared In

MMCustomEventInterstitial.h

– customEventInterstitialWillDisplay: required method

Should be called before an interstitial is displayed.

- (void)customEventInterstitialWillDisplay:(id<MMCustomEventInterstitial>)customEventInterstitial

Parameters

customEventInterstitial

The instance of custom event interstitial that called the callback.

Discussion

Should be called before an interstitial is displayed.

Declared In

MMCustomEventInterstitial.h

– customEventInterstitialWillDismiss: required method

Should be called before an interstitial will be dismissed.

- (void)customEventInterstitialWillDismiss:(id<MMCustomEventInterstitial>)customEventInterstitial

Parameters

customEventInterstitial

The instance of custom event interstitial that called the callback.

Discussion

Should be called before an interstitial will be dismissed.

Declared In

MMCustomEventInterstitial.h

– customEventInterstitialDidDismiss: required method

Should be called after an interstitial has dismissed.

- (void)customEventInterstitialDidDismiss:(id<MMCustomEventInterstitial>)customEventInterstitial

Parameters

customEventInterstitial

The instance of custom event interstitial that called the callback.

Discussion

Should be called after an interstitial has dismissed.

Declared In

MMCustomEventInterstitial.h

– customEventInterstitialContentTapped: required method

Should be called whenever the content of an interstitial is tapped.

- (void)customEventInterstitialContentTapped:(id<MMCustomEventInterstitial>)customEventInterstitial

Parameters

customEventInterstitial

The instance of custom event interstitial that called the callback.

Discussion

Should be called whenever the content of an interstitial is tapped.

Declared In

MMCustomEventInterstitial.h

– customEventInterstitial:showDidFailWithError: required method

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

- (void)customEventInterstitial:(id<MMCustomEventInterstitial>)customEventInterstitial showDidFailWithError:(NSError *)error

Parameters

customEventInterstitial

The instance of custom event interstitial 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 MMCustomEventInterstitial fails to show an ad, with an appropriate error message.

Declared In

MMCustomEventInterstitial.h

– customEventInterstitialWillLeaveApplication: required method

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

- (void)customEventInterstitialWillLeaveApplication:(id<MMCustomEventInterstitial>)customEventInterstitial

Parameters

customEventInterstitial

The instance of custom event interstitial that called the callback.

Discussion

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

Declared In

MMCustomEventInterstitial.h

– customEventInterstitialExpireContent: required method

This method should be called whenever an interstitial’s content expires.

- (void)customEventInterstitialExpireContent:(id<MMCustomEventInterstitial>)customEventInterstitial

Parameters

customEventInterstitial

The instance of custom event interstitial that called the callback.

Discussion

This method should be called whenever an interstitial’s content expires.

Declared In

MMCustomEventInterstitial.h

  displayed required method

A value indicating whether or not the interstitial is currently displayed to the user.

@property (nonatomic, readonly, getter=isDisplayed) BOOL displayed

Discussion

A value indicating whether or not the interstitial is currently displayed to the user.

Declared In

MMCustomEventInterstitial.h

  transitionStyle required method

The transition style that has been requested by the publisher. If the interstitial is going to display a modal, a best effort should be used to use this value.

@property (nonatomic, readonly) UIModalTransitionStyle transitionStyle

Discussion

The transition style that has been requested by the publisher. If the interstitial is going to display a modal, a best effort should be used to use this value.

This value is allowed to be distinct from the transitionStyle used to present the interstitial.

Declared In

MMCustomEventInterstitial.h