UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

35 lines (34 loc) 1.31 kB
/** * Service to detect the current platform by comparing the userAgent strings and * checking browser-specific global properties. */ export declare class Platform { private _platformId; /** * Whether the Angular application is being rendered in the browser. * We want to use the Angular platform check because if the Document is shimmed * without the navigator, the following checks will fail. This is preferred because * sometimes the Document may be shimmed without the user's knowledge or intention */ isBrowser: boolean; /** Whether the current browser is Microsoft Edge. */ EDGE: boolean; /** Whether the current rendering engine is Microsoft Trident. */ TRIDENT: boolean; /** Whether the current rendering engine is Blink. */ BLINK: boolean; /** Whether the current rendering engine is WebKit. */ WEBKIT: boolean; /** Whether the current platform is Apple iOS. */ IOS: boolean; /** Whether the current browser is Firefox. */ FIREFOX: boolean; /** Whether the current platform is Android. */ ANDROID: boolean; /** Whether the current browser is Safari. */ SAFARI: boolean; /** * @breaking-change v7.0.0 remove optional decorator */ constructor(_platformId?: Object | undefined); }