public final class BannerCacheConfiguration extends Object
BannerCache.| Constructor and Description |
|---|
BannerCacheConfiguration(String placementName,
int size)
Creates the configuration object to be used when creating BannerCache
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDelegate(BannerCache.CacheDelegate delegate)
Sets optional cache delegate.
|
void |
setMinimumDelay(int minDelay)
Sets the minimum delay between two banner consumptions. 1s by default.
|
void |
setRequestConfiguration(BannerRequest requestConfiguration)
The configuration that will be used when requesting new banners.
|
void |
setShouldCacheAdditionalAdAtStart(boolean shouldCacheAdditionalAdAtStart)
Defines if the cache should load additional ad at the beginning.
|
String |
toString() |
public BannerCacheConfiguration(String placementName, int size)
placementName - The name of the banner placement that will be created. The placement will be created by the cache and should not be created manually.size - Defines how many preloaded banners should be available in the cache. Should be smaller than .public void setDelegate(BannerCache.CacheDelegate delegate)
delegate - BannerCache.CacheDelegate to be used.public void setShouldCacheAdditionalAdAtStart(boolean shouldCacheAdditionalAdAtStart)
shouldCacheAdditionalAdAtStart - Boolean indicating if additional ad should be cached.public void setRequestConfiguration(BannerRequest requestConfiguration)
requestConfiguration - The BannerRequest instance.public void setMinimumDelay(int minDelay)
minDelay - The minimum delay in seconds between two banner consumptions.