{"version":3,"file":"device-detector.service.d.ts","sources":["device-detector.service.d.ts"],"names":[],"mappings":"AAAA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA","sourcesContent":["import { ReTree } from './retree';\nexport interface DeviceInfo {\n userAgent: string;\n os: string;\n browser: string;\n device: string;\n os_version: string;\n browser_version: string;\n deviceType: string;\n orientation: string;\n}\nexport declare enum DeviceType {\n Mobile = \"mobile\",\n Tablet = \"tablet\",\n Desktop = \"desktop\",\n Unknown = \"unknown\"\n}\nexport declare enum OrientationType {\n Portrait = \"portrait\",\n Landscape = \"landscape\"\n}\nexport declare class DeviceDetectorService {\n private platformId;\n ua: string;\n userAgent: string;\n os: string;\n browser: string;\n device: string;\n os_version: string;\n browser_version: string;\n reTree: ReTree;\n deviceType: string;\n orientation: string;\n constructor(platformId: any);\n /**\n * @author Ahsan Ayaz\n * @desc Sets the initial value of the device when the service is initiated.\n * This value is later accessible for usage\n */\n setDeviceInfo(ua?: string): void;\n /**\n * @author Ahsan Ayaz\n * @desc Returns the device information\n * @returns the device information object.\n */\n getDeviceInfo(): DeviceInfo;\n /**\n * @author Ahsan Ayaz\n * @desc Compares the current device info with the mobile devices to check\n * if the current device is a mobile and also check current device is tablet so it will return false.\n * @returns whether the current device is a mobile\n */\n isMobile(userAgent?: string): boolean;\n /**\n * @author Ahsan Ayaz\n * @desc Compares the current device info with the tablet devices to check\n * if the current device is a tablet.\n * @returns whether the current device is a tablet\n */\n isTablet(userAgent?: string): boolean;\n /**\n * @author Ahsan Ayaz\n * @desc Compares the current device info with the desktop devices to check\n * if the current device is a desktop device.\n * @returns whether the current device is a desktop device\n */\n isDesktop(userAgent?: string): boolean;\n}\n"]}