UNPKG

@ngx-extensions/screenfull

Version:
28 lines (27 loc) 770 B
import { OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; /** * Tracks the state of the fullscreen mode and allows interaction with its API */ export declare class ScreenfullService implements OnDestroy { private readonly fullScreenSub; readonly fullScreenActive$: Observable<boolean>; /** * Gets whether browser fullscreen mode is active or not. */ readonly isFullScreenModeActive: boolean; /** * Creates a new instance */ constructor(); ngOnDestroy(): void; request(): void; exit(): void; /** * Toggles the fullscreen mode of the browser */ toggle(): void; private _removeListener; private _registerListener; private _emitCurrent; }