AdvertisingApi

interface AdvertisingApi

Provides the means to interact with advertising features. Accessible through Player.ads.

Functions

Link copied to clipboard
abstract fun schedule(adItem: AdItem)

Schedules the adItem for playback.

Link copied to clipboard
abstract fun setViewGroup(adViewGroup: ViewGroup?)

Sets the ViewGroup in which the ad and the ad UI should be created.

Link copied to clipboard
abstract fun skip()

Skips the current ad. A successful skip is signaled via PlayerEvent.AdSkipped.