PresentationState

data class PresentationState(val pictureInPicture: Boolean, val showing: PresentationSurface)

What the SDK is presenting right now, returned by OptiViewAds.getPresentationState.

Deliberately answered by the SDK rather than derived by the application: the SDK is what decides whether an ad occupies the surface and what picture-in-picture does to a break, so an app that inferred it would be re-implementing that decision and would drift the moment the rules change (they did — PiP now re-lays-out a break in flight).

Useful to any integrator drawing its own overlay UI; the test agent forwards it verbatim.

Constructors

Link copied to clipboard
constructor(pictureInPicture: Boolean, showing: PresentationSurface)

Properties

Link copied to clipboard

Whether the host has reported the content player to be in picture-in-picture.

Link copied to clipboard

Which media currently owns the surface.