MMCustomEventBanner Protocol Reference

Conforms to MMCustomEvent
Declared in MMCustomEventBanner.h

Overview

This protocol is implemented by classes which are able to provide content to inline ads.

  view required method

The view containing the content for the placement.

@property (nonatomic, readonly) UIView *view

Discussion

The view containing the content for the placement.

Declared In

MMCustomEventBanner.h

+ customEventWithDelegate: required method

The method should return an instance of MMCustomEventBanner.

+ (id<MMCustomEventBanner>)customEventWithDelegate:(id<MMCustomEventBannerDelegate>)delegate

Parameters

delegate

Custom event banner delegate.

Discussion

The method should return an instance of MMCustomEventBanner.

Declared In

MMCustomEventBanner.h

– unloadAndRemoveViews

This method is called when the custom event should immediately attempt to remove all of its associated views, and unload them from memory. If the custom event class is unable to implement this method, it may result in issues if the associated MMInlineAd is removed from the view hierarchy while resized or displaying a modal.

- (void)unloadAndRemoveViews

Discussion

This method is called when the custom event should immediately attempt to remove all of its associated views, and unload them from memory. If the custom event class is unable to implement this method, it may result in issues if the associated MMInlineAd is removed from the view hierarchy while resized or displaying a modal.

Declared In

MMCustomEventBanner.h

– closeOverlays

This method is called by the SDK in order to force-close overlays that have been displayed by an inline placement. If the custom event class is unable to implement this method, it may result in issues if the associated MMInlineAd is removed from the view hierarchy while resized or displaying a modal.

- (void)closeOverlays

Discussion

This method is called by the SDK in order to force-close overlays that have been displayed by an inline placement. If the custom event class is unable to implement this method, it may result in issues if the associated MMInlineAd is removed from the view hierarchy while resized or displaying a modal.

Declared In

MMCustomEventBanner.h

  displayingOverlay

A value indicating whether or not the content is currently displaying an overlay. For the Millennial SDK, an ‘overlay’ is defined as any content the ad has presented which may be obscuring part of the screen. If the custom event class is unable to implement this method, it may result in issues if the associated MMInlineAd is removed from the view hierarchy while resized or displaying a modal.

@property (nonatomic, readonly, getter=isDisplayingOverlay) BOOL displayingOverlay

Discussion

A value indicating whether or not the content is currently displaying an overlay. For the Millennial SDK, an ‘overlay’ is defined as any content the ad has presented which may be obscuring part of the screen. If the custom event class is unable to implement this method, it may result in issues if the associated MMInlineAd is removed from the view hierarchy while resized or displaying a modal.

Declared In

MMCustomEventBanner.h