UNPKG

1.11 kBTypeScriptView Raw
1import * as i0 from "@angular/core";
2/**
3 * Service to detect the current platform by comparing the userAgent strings and
4 * checking browser-specific global properties.
5 */
6export declare class Platform {
7 private _platformId;
8 /** Whether the Angular application is being rendered in the browser. */
9 isBrowser: boolean;
10 /** Whether the current browser is Microsoft Edge. */
11 EDGE: boolean;
12 /** Whether the current rendering engine is Microsoft Trident. */
13 TRIDENT: boolean;
14 /** Whether the current rendering engine is Blink. */
15 BLINK: boolean;
16 /** Whether the current rendering engine is WebKit. */
17 WEBKIT: boolean;
18 /** Whether the current platform is Apple iOS. */
19 IOS: boolean;
20 /** Whether the current browser is Firefox. */
21 FIREFOX: boolean;
22 /** Whether the current platform is Android. */
23 ANDROID: boolean;
24 /** Whether the current browser is Safari. */
25 SAFARI: boolean;
26 constructor(_platformId: Object);
27 static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
28 static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
29}