Type Alias VisibilityObserverCallback

VisibilityObserverCallback: ((ratio: number) => void)

A callback for a visibility observer.

Type declaration

    • (ratio): void
    • Parameters

      • ratio: number

        Describes the ratio of visible pixels of the player.

      Returns void