UNPKG

646 BTypeScriptView Raw
1import { EventEmitter, NgZone, ElementRef } from '@angular/core';
2import * as i0 from "@angular/core";
3/**
4 * Visibility Observer
5 */
6export declare class VisibilityObserver {
7 private element;
8 private zone;
9 visible: EventEmitter<any>;
10 timeout: any;
11 isVisible: boolean;
12 constructor(element: ElementRef, zone: NgZone);
13 destroy(): void;
14 onVisibilityChange(): void;
15 runCheck(): void;
16 static ɵfac: i0.ɵɵFactoryDeclaration<VisibilityObserver, never>;
17 static ɵdir: i0.ɵɵDirectiveDeclaration<VisibilityObserver, "visibility-observer", never, {}, { "visible": "visible"; }, never, never, false, never>;
18}