Millennial Media Android Ad SDK Public Documentation  6.4.0
Public Member Functions | List of all members
InlineAd.InlineListener Interface Reference

Public Member Functions

void onRequestSucceeded (InlineAd inlineAd)
 
void onRequestFailed (InlineAd inlineAd, InlineErrorStatus errorStatus)
 
void onClicked (InlineAd inlineAd)
 
void onResize (InlineAd inlineAd, int width, int height)
 
void onResized (InlineAd inlineAd, int width, int height, boolean isClosed)
 
void onExpanded (InlineAd inlineAd)
 
void onCollapsed (InlineAd inlineAd)
 
void onAdLeftApplication (InlineAd inlineAd)
 

Detailed Description

Interface that defines the callbacks to be invoked when InlineAd events occur.

Member Function Documentation

◆ onAdLeftApplication()

void onAdLeftApplication ( InlineAd  inlineAd)

Called when ad behavior causes the active context (from the user perspective) to leave the application

Parameters
inlineAdad instance that the event occurred on

◆ onClicked()

void onClicked ( InlineAd  inlineAd)

Called when the InlineAd has been clicked.

Parameters
inlineAdthe InlineAd that the click event occurred on

◆ onCollapsed()

void onCollapsed ( InlineAd  inlineAd)

Called when an expanded InlineAd has collapsed back.

Parameters
inlineAdthe InlineAd that the close event occurred on

◆ onExpanded()

void onExpanded ( InlineAd  inlineAd)

Called when the InlineAd has expanded to full screen.

Parameters
inlineAdthe InlineAd that the expand event occurred on

◆ onRequestFailed()

void onRequestFailed ( InlineAd  inlineAd,
InlineErrorStatus  errorStatus 
)

Called when the InlineAd request has failed.

An InlineErrorStatus is supplied providing detail about the error.

Parameters
inlineAdthe InlineAd that the failure event occurred on
errorStatusthe InlineErrorStatus that describes the cause of the failure

◆ onRequestSucceeded()

void onRequestSucceeded ( InlineAd  inlineAd)

Called when the InlineAd has successfully loaded a new ad.

Parameters
inlineAdthe InlineAd that the successful request event occurred on

◆ onResize()

void onResize ( InlineAd  inlineAd,
int  width,
int  height 
)

Called when the InlineAd is about to resize itself.

Parameters
inlineAdthe InlineAd that the resize event will occur on
widththe requested width in pixels
heightthe requested height in pixels

◆ onResized()

void onResized ( InlineAd  inlineAd,
int  width,
int  height,
boolean  isClosed 
)

Called when the InlineAd has been resized.

Parameters
inlineAdthe InlineAd that the resize event occurred on
widththe requested width in pixels
heightthe requested height in pixels
isClosedindicates whether or not the ad was moved out of a resized state and back to its original size