Android Verizon Ads SDK Standard Edition Documentation  1.1
Public Member Functions | List of all members
InlineAdFactory.InlineAdFactoryListener Interface Reference

Interface for receiving notifications from the InlineAdFactory. More...

Public Member Functions

void onCacheLoaded (InlineAdFactory adFactory, int numRequested, int numReceived)
 Called when the cache request is complete. More...
 
void onCacheUpdated (InlineAdFactory adFactory, int cacheSize)
 Called when the number of ads in the cache has been modified. More...
 
void onError (InlineAdFactory adFactory, ErrorInfo errorInfo)
 Called when there is an error requesting an InlineAdView or loading an InlineAdView from the cache. More...
 
void onLoaded (InlineAdFactory adFactory, InlineAdView inlineAdView)
 Called when the InlineAdView has been loaded. More...
 

Detailed Description

Interface for receiving notifications from the InlineAdFactory.

Member Function Documentation

◆ onCacheLoaded()

void onCacheLoaded ( InlineAdFactory  adFactory,
int  numRequested,
int  numReceived 
)

Called when the cache request is complete.

Parameters
adFactorythe calling InlineAdFactory
numRequestedthe number of ads requested for the cache (i.e. the difference between the maximum number of ads for your cache and the ads already in the cache)
numReceivedthe number of ads received for the cache. This value may be less than the number requested if not all ads requested were available.

◆ onCacheUpdated()

void onCacheUpdated ( InlineAdFactory  adFactory,
int  cacheSize 
)

Called when the number of ads in the cache has been modified.

This could mean that ads have been added to the cache or that an ad was removed from the cache for display.

Parameters
adFactorythe calling InlineAdFactory
cacheSizethe new value of the cache. Represents the number of InlineAdViews available

◆ onError()

void onError ( InlineAdFactory  adFactory,
ErrorInfo  errorInfo 
)

Called when there is an error requesting an InlineAdView or loading an InlineAdView from the cache.

Parameters
adFactorythe calling InlineAdFactory
errorInfoan ErrorInfo object containing details about the error

◆ onLoaded()

void onLoaded ( InlineAdFactory  adFactory,
InlineAdView  inlineAdView 
)

Called when the InlineAdView has been loaded.

A new InlineAdView instance will be provided as part of this callback.

Parameters
adFactorythe calling InlineAdFactory
inlineAdViewthe InlineAdView object that is ready to be displayed