BannerCache

interface BannerCache

Types

Link copied to clipboard
interface CacheDelegate

Optional delegate informing about events in BannerCache.

Link copied to clipboard

Optional delegate representing the cache status.

Properties

Link copied to clipboard

Delegate representing the cache status.

Link copied to clipboard

Setting for Google collapsible banners. Default is null, meaning disabled support for collapsible banners.

Link copied to clipboard

Sets the impression listener for banner cache.

Link copied to clipboard

Sets the statistics listener that will be notified about placement reporting events, like counted adspace, request etc.

Functions

Link copied to clipboard

Returns an instance of BannerPlacementLayout to be used within the app. Also automatically counts an ad space.

abstract fun consume(force: Boolean): BannerPlacementLayout?

Returns an instance of BannerPlacementLayout to be used within the app. Also automatically counts an ad space. BannerCache will no longer hold any references to returned banners, and they need to be destroyed manually by the app.

Link copied to clipboard
abstract fun destroy()

Destroys the BannerCache, clearing all preloaded banner ads and canceling pending reload requests. For proper memory management, it needs to be called when the BannerCache is no longer needed. Destroyed BannerCache can no longer be used.

Link copied to clipboard
abstract fun enableCreativeHistory(size: Int)

Enables the banner creative history.

Link copied to clipboard
abstract fun getCreativeHistory(): Array<PlacementHistoryInfo>?

Retrieves the banner creative history (if it was enabled).

Link copied to clipboard
abstract fun updateRequestConfiguration(requestConfiguration: BannerRequest?, shouldRefresh: Boolean)

Updates the configuration that will be used when requesting new banners.