AdSlot

class AdSlot

Per-request slot state allocated from an AdContext.

One AdSlot is allocated by the SDK for every ad request and shared across every module asked to fill that request. The slot owns the request's unique id, the onIntendedPlayheadReached signal, the filledByModule attribution, and the cancellationSignal modules observe to abort in-flight work.

Constructor is internal; use AdContext.allocateSlot (and look the slot up later via AdContext.slotForDesignatedId).

Properties

Link copied to clipboard
val cancellationSignal: CompletableJob

Cancellation signal completed by the SDK when the slot is abandoned, consumed, or its parent session is dismissed.

Link copied to clipboard
var filledByModule: StorytellerModule?

Module instance that produced an ad for this slot, or null if no module filled it.

Link copied to clipboard
val id: String

Unique slot identifier, stable for the lifetime of this slot.

Link copied to clipboard

Emits exactly once when the playhead first reaches this slot's display position.