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

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

Public Member Functions

void onCacheLoaded (NativeAdFactory adFactory, int numRequested, int numReceived)
 Called when the cache request is complete. More...
 
void onCacheUpdated (NativeAdFactory adFactory, int cacheSize)
 Called when the number of ads in the cache has been modified. More...
 
void onError (NativeAdFactory adFactory, ErrorInfo errorInfo)
 Called when there is an error requesting a NativeAd or loading a NativeAd from the cache. More...
 
void onLoaded (NativeAdFactory adFactory, NativeAd nativeAd)
 Called when the components for the NativeAd have been loaded. More...
 

Detailed Description

Interface for receiving notifications from the NativeAdFactory.

Member Function Documentation

◆ onCacheLoaded()

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

Called when the cache request is complete.

Parameters
adFactorythe calling NativeAdFactory
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 ( NativeAdFactory  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 NativeAdFactory
cacheSizethe new value of the cache. Represents the number of NativeAds available

◆ onError()

void onError ( NativeAdFactory  adFactory,
ErrorInfo  errorInfo 
)

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

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

◆ onLoaded()

void onLoaded ( NativeAdFactory  adFactory,
NativeAd  nativeAd 
)

Called when the components for the NativeAd have been loaded.

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

Parameters
adFactorythe calling NativeAdFactory
nativeAdthe NativeAd object that is ready to be displayed