ChartboostMediationFullscreenAdQueue

class ChartboostMediationFullscreenAdQueue(val context: <Error class: unknown class>, val placement: String)

The fullscreen ad queue class. This class is responsible for loading multiple ChartboostMediationFullscreenAd ads and storing them to a queue for subsequent showing. Ads that have been stored for a period of queuedAdTtlMs are expired and removed from the queue.

The queue will begin to load ads upon start() and continue to fill until it reaches the queueCapacity. When an ad is removed from the queue, a new load will be attempted.

The queue will stop to load ads upon stop(). However, ads already stored will persist until they are either retrieved from the queue or have been expired automatically.

Parameters

context

Context The current context.

placement

String The corresponding Chartboost Mediation placement.

Constructors

Link copied to clipboard
constructor(context: <Error class: unknown class>, placement: String)

Properties

Link copied to clipboard
Link copied to clipboard
val context: <Error class: unknown class>
Link copied to clipboard

Whether or not the ad queue is currently running (active) and automatically queueing ads.

Link copied to clipboard

Property to get and set Keywords from the ad queue.

Link copied to clipboard

A property that gets the number of ready ads currently in the ad queue.

Link copied to clipboard

Publisher-specified map of String to Any that is sent to all the partners.

Link copied to clipboard
Link copied to clipboard

A property that gets and sets the ad queue capacity.

Functions

Link copied to clipboard

Gets the next ad from the queue.

Link copied to clipboard

Checks if there's an ad available.

Link copied to clipboard
fun start()

Starts loading ads and append them to the queue automatically until capacity has been reached.

Link copied to clipboard
fun stop()

Stops loading ads.