https://github.com/rebeccahughes/react-native-device-info
Tip revision: b85acb8a3992ff8a886de304c701545cf6f05f42 authored by Mike Hardy on 09 April 2019, 03:52:19 UTC
1.4.3
1.4.3
Tip revision: b85acb8
deviceinfo.d.ts
// should be imported this way:
// import DeviceInfo from 'react-native-device-info';
export type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Unknown';
declare const _default: {
getUniqueID: () => string;
getManufacturer: () => string;
getBrand: () => string;
getModel: () => string;
getDeviceId: () => string;
getSystemName: () => string;
getSystemVersion: () => string;
getBundleId: () => string;
getApplicationName: () => string;
getBuildNumber: () => string;
getVersion: () => string;
getReadableVersion: () => string;
getDeviceName: () => string;
getUserAgent: () => string;
getDeviceLocale: () => string;
getPreferredLocales: () => Array<string>;
getDeviceCountry: () => string;
getTimezone: () => string;
getInstanceID: () => string;
getInstallReferrer: () => string | null;
isEmulator: () => boolean;
isTablet: () => boolean;
getFontScale: () => number;
is24Hour: () => boolean;
isPinOrFingerprintSet(): (cb: (isPinOrFingerprintSet: boolean) => void) => void;
hasNotch: () => boolean;
getFirstInstallTime: () => number;
getLastUpdateTime: () => number;
getSerialNumber: () => string;
getIPAddress: () => Promise<string>;
getMACAddress: () => Promise<string>;
getPhoneNumber: () => string;
getAPILevel: () => number;
getCarrier: () => string;
getTotalMemory: () => number;
getMaxMemory: () => number;
getTotalDiskCapacity: () => number;
getFreeDiskStorage: () => number;
getBatteryLevel: () => Promise<number>;
getPowerState: () => Promise<object>;
isBatteryCharging: () => Promise<boolean>;
isLandscape: () => boolean;
isAirPlaneMode: () => Promise<boolean>;
getDeviceType: () => DeviceType;
isAutoDateAndTime: () => Promise<boolean>;
isAutoTimeZone: () => Promise<boolean>;
supportedABIs: () => string[];
};
export default _default;