AdBreakStatus
Playback-gated snapshot of an ad break for UI countdowns — the Kotlin mirror of the web AdBreakStatus (packages/core/src/types/Events.ts). The SDK owns the timebase and the player-gated ticking flag; the application renders the badge/overlay. Emitted on the AdBreakStatusEvent and returned by OptiViewAds.getAdBreakStatus.
Constructors
Properties
Number of ads remaining including the currently playing one.
The break this status describes; null when phase is AdBreakPhase.IDLE.
Estimated seconds remaining in the currently active break, when it can be derived from playback progress. null when not yet known (e.g. a backdrop break with no per-ad timeupdate).
Declared format of the break's selected variant, when known.
Current lifecycle phase of the ad break.
Seconds until the break starts. Populated for upcoming warnings — the live countdown value at the moment the warning fired.
When this status was emitted because of a configured pre-break warning, the configured warning second that was crossed.