Home > @gglib/utils > documentVisibilityApi

documentVisibilityApi variable

Signature:

documentVisibilityApi: {
    readonly isHidden: boolean;
    readonly isVisible: boolean;
    readonly visibilityState: VisibilityState;
    onVisibilityChange(callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
    offVisibilityChange(callback: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
}