MMInlineDelegate Protocol Reference

Conforms to NSObject
Declared in MMInlineAd.h

Overview

The delegate of an MMInlineAd object. This delegate provides information about the relevant placement and ad activity that an application may need to respond to.

– viewControllerForPresentingModalView required method

The view controller over which modal content will be displayed.

- (UIViewController *)viewControllerForPresentingModalView

Return Value

A view controller that is used for presenting modal content.

Discussion

The view controller over which modal content will be displayed.

Declared In

MMInlineAd.h

– inlineAdRequestDidSucceed:

Callback indicating that an ad request has succeeded.

- (void)inlineAdRequestDidSucceed:(MMInlineAd *)ad

Parameters

ad

The ad placement which was successfully requested.

Discussion

Callback indicating that an ad request has succeeded.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAd:requestDidFailWithError:

Callback indicating that ad content failed to load or render.

- (void)inlineAd:(MMInlineAd *)ad requestDidFailWithError:(NSError *)error

Parameters

ad

The ad placement for which the request failed.

error

The error indicating the failure.

Discussion

Callback indicating that ad content failed to load or render.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAdContentTapped:

Callback indicating that the user has interacted with ad content.

- (void)inlineAdContentTapped:(MMInlineAd *)ad

Parameters

ad

The ad placement which was tapped.

Discussion

Callback indicating that the user has interacted with ad content.

This callback should not be used to adjust the contents of your application – it should be used only for the purposes of reporting.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAd:willResizeTo:isClosing:

Callback indicating that the ad is preparing to be resized.

- (void)inlineAd:(MMInlineAd *)ad willResizeTo:(CGRect)frame isClosing:(BOOL)isClosingResize

Parameters

ad

The ad placement.

frame

The size and location of the ad placement.

isClosingResize

This flag indicates the resize close button was tapped, causing a resize to the default/original size.

Discussion

Callback indicating that the ad is preparing to be resized.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAd:didResizeTo:isClosing:

Callback indicating the ad has finished resizing.

- (void)inlineAd:(MMInlineAd *)ad didResizeTo:(CGRect)frame isClosing:(BOOL)isClosingResize

Parameters

ad

The ad placement.

frame

The size and location of the ad placement.

isClosingResize

This flag indicates the resize close button was tapped, causing a resize to the default/original size.

Discussion

Callback indicating the ad has finished resizing.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAdWillPresentModal:

Callback indicating that the ad is preparing to present a modal view.

- (void)inlineAdWillPresentModal:(MMInlineAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback indicating that the ad is preparing to present a modal view.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAdDidPresentModal:

Callback indicating that the ad has presented a modal view.

- (void)inlineAdDidPresentModal:(MMInlineAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback indicating that the ad has presented a modal view.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAdWillCloseModal:

Callback indicating that the ad is preparing to dismiss a modal view.

- (void)inlineAdWillCloseModal:(MMInlineAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback indicating that the ad is preparing to dismiss a modal view.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAdDidCloseModal:

Callback indicating that the ad has dismissed a modal view.

- (void)inlineAdDidCloseModal:(MMInlineAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback indicating that the ad has dismissed a modal view.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAdWillLeaveApplication:

Callback invoked prior to the application going into the background due to a user interaction with an ad.

- (void)inlineAdWillLeaveApplication:(MMInlineAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback invoked prior to the application going into the background due to a user interaction with an ad.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAdAbortDidSucceed:

Callback invoked when an abort for an in-progress request successfully stops processing.

- (void)inlineAdAbortDidSucceed:(MMInlineAd *)ad

Parameters

ad

The ad placement.

Discussion

Callback invoked when an abort for an in-progress request successfully stops processing.

This method is always called on the main thread.

Declared In

MMInlineAd.h

– inlineAd:abortDidFailWithError:

Callback invoked when an abort for an in-progress request fails.

- (void)inlineAd:(MMInlineAd *)ad abortDidFailWithError:(NSError *)error

Parameters

ad

The ad placement.

error

Error indicating the manner in which the abort failed.

Discussion

Callback invoked when an abort for an in-progress request fails.

Note that depending on the reason for abort failure, the relevant delegate callback (inlineAdRequestDidSucceed: or inlineAd:requestDidFailWithError:) is invoked before this method.

This method is always called on the main thread.

Declared In

MMInlineAd.h