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).
Delivery mode of the active session; SessionDeliveryMode.SSB while AirPlay plays the server-side beaconing stream. Null between sessions.
Whether the content player may start AirPlay right now: false during a break and in the seconds before one. null unless the SDK manages the AirPlay gate (the manifest carries a server-side beaconing stream and the adapter can gate external playback).
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.