ngx-device-info
Version:
Angular library which provides device information / type / name and also it provides much more device independent features & informations.
16 lines (15 loc) • 567 B
TypeScript
import * as i0 from "@angular/core";
export declare class NgxDeviceInfoService {
private permissionsNames;
constructor();
getDeviceInfo(): Promise<any>;
getDeviceName(): string;
getDeviceType(): "tablet" | "mobile" | "desktop";
isMobile(): boolean;
isTablet(): boolean;
isDesktop(): boolean;
getOrientation(): "" | "portrait" | "landscape";
getAllPermissions: () => Promise<any>;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDeviceInfoService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<NgxDeviceInfoService>;
}