platform.d-B3vREl3q.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. import * 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. */
  6. 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. /** Backwards-compatible constructor. */
  27. constructor(..._args: unknown[]);
  28. static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
  29. static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
  30. }
  31. export { Platform as P };