AdRequestConnection

class AdRequestConnection(val adRequest: AdRequest)

The AdRequestConnection represents a single connection to the ad server.

The ad request settings are encapsulated in a reusable object. The AdRequestConnection object encapsulates the states of a single communication, e.g. starting/canceling a connection.

adRequest A request that holds all the necessary data to build the ad request.

Constructors

Link copied to clipboard
constructor(adRequest: AdRequest)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun cancelAll()

Cancel all ongoing requests.

Link copied to clipboard

Request ads from the ad server.

Link copied to clipboard
fun setTimeout(timeout: Duration)
fun setTimeout(timeout: Duration)