GamAdEventCallbacks

Callbacks for IMA ad-progress events (mirrors the web GamAdEventCallbacks).

Functions

Link copied to clipboard
open fun onAdBreakEnded()

IMA finished an ad break (a pod).

Link copied to clipboard
open fun onAdBreakStarted()

IMA started an ad break (a pod).

Link copied to clipboard
open fun onAdComplete()

The current ad within the pod completed.

Link copied to clipboard

The current ad reached 25%.

Link copied to clipboard
open fun onAdMidpoint()

The current ad reached 50%.

Link copied to clipboard
open fun onAdStarted(info: GamPodAdInfo? = null)

An ad within the pod started. info carries the pod-ad data normalized off IMA's AdPodInfo (GamPodAdInfo), or null when IMA attached no ad to the event — nothing downstream of GamStreamManager handles IMA types.

Link copied to clipboard

The current ad reached 75%.

Link copied to clipboard
open fun onError(message: String)

IMA reported an error; message is IMA's description.