SlotAdsProviderCallbacks
Superset of AdsProviderCallbacks for slot providers. Implemented by the SDK core; must be called on the application main thread.
Functions
The viewer opened the ad's clickthrough ("Learn more"): the browser is about to cover the app. The SDK pauses the ad — otherwise it plays on, audio included, behind the advertiser's page — and resumes it when the app comes back to the foreground. Default no-op.
Remaining (unplayed) midroll positions in content time, plus whether a postroll slot exists (core appends the content duration as its cue). Called after the ad request completes and again whenever a slot is consumed.
Playback progress of the current ad (drives the chrome countdown).
The current ad's skippable state changed.
The viewer tapped the ad itself — not its skip, clickthrough or AdChoices control. Providers that own the layer over the video (IMA) report the tap here and the SDK toggles the ad's playback; a provider that draws nothing over the video never needs to — the SDK's own surface handles that tap. Default no-op: existing providers stay source- and binary-compatible.
The provider opened or closed a dialog of its own UI (IMA: the "About this ad" fallback dialog on TVs). Lets the SDK's remote chrome send Back to the dialog first instead of stepping out from under it.
Postrolls finished (or none existed) after onContentEnded — core now reports playback completion to the app.