Interface VisibilityObserver

Represents a visibility observer.

interface VisibilityObserver {
    ratio: number;
    thresholds: readonly number[];
}

Properties

Properties

ratio: number

The ratio of pixels of the player that are within the viewport.

Remarks


- This value is updated every time an observed threshold is crossed. It is accurate up to the size of this observer's step.

thresholds: readonly number[]

List of thresholds which are monitored by the observer.

Generated using TypeDoc