Interface Imagine

The Imagine API.

interface Imagine {
    playing: boolean;
    addEventListener<TType extends keyof ImagineEventMap>(
        type: TType | readonly TType[],
        listener: EventListener<ImagineEventMap[TType]>,
    ): void;
    removeEventListener<TType extends keyof ImagineEventMap>(
        type: TType | readonly TType[],
        listener: EventListener<ImagineEventMap[TType]>,
    ): void;
}

Hierarchy (View Summary)

Properties

playing: boolean

Whether an Imagine ad is playing.

Methods