UNPKG

@anexia/platform-tools

Version:

Provides Ionic Framework way class mapping of current platform and orientation on the root document node ´html´ for usage inside scss or :host-context selecting.

24 lines (23 loc) 1.03 kB
import * as i0 from "@angular/core"; export declare type Platforms = keyof typeof PLATFORMS_MAP; export declare class PlatformToolsService { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration<PlatformToolsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PlatformToolsService>; } export declare function updateOrientation(win?: any): void; export declare const setupPlatforms: (win?: any) => ("ipad" | "iphone" | "ios" | "android" | "phablet" | "tablet" | "pwa" | "mobile" | "mobileweb" | "desktop")[]; export declare const testUserAgent: (win: Window, expr: RegExp) => boolean; declare const PLATFORMS_MAP: { ipad: (win: Window) => boolean; iphone: (win: Window) => boolean; ios: (win: Window) => boolean; android: (win: Window) => boolean; phablet: (win: Window) => boolean; tablet: (win: Window) => boolean; pwa: (win: Window) => boolean; mobile: (win: Window) => boolean; mobileweb: (win: Window) => boolean; desktop: (win: Window) => boolean; }; export {};