This repository has been archived by the owner on Aug 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deviceinfo.js.flow
77 lines (75 loc) · 2.46 KB
/
deviceinfo.js.flow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// @flow
export type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Unknown';
declare module.exports: {
getUniqueID: () => string,
getManufacturer: () => string,
getBrand: () => string,
getModel: () => string,
getDeviceId: () => string,
getSystemName: () => string,
getSystemVersion: () => string,
getBuildId: () => 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,
isEmulator: () => boolean,
isTablet: () => boolean,
getFontScale: () => number,
getBootloader: () => string,
getDevice: () => string,
getDisplay: () => string,
getFingerprint: () => string,
getHardware: () => string,
getHost: () => string,
getProduct: () => string,
getTags: () => string,
getType: () => string,
getBaseOS: () => string,
getPreviewSdkInt: () => number,
getSecurityPatch: () => string,
getCodename: () => string,
getIncremental: () => string,
is24Hour: () => boolean,
isPinOrFingerprintSet: () => (
cb: (isPinOrFingerprintSet: boolean) => void
) => void,
hasNotch: () => boolean,
getFirstInstallTime: () => number,
getLastUpdateTime: () => number,
getSerialNumber: () => string,
getAPILevel: () => number,
getIPAddress: () => Promise<string>,
getCameraPresence: () => Promise<boolean>,
getMACAddress: () => Promise<string>,
getPhoneNumber: () => ?string,
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[],
supported32BitAbis: () => string[],
supported64BitAbis: () => string[],
hasSystemFeature: (feature: string) => Promise<boolean>,
getSystemAvailableFeatures: () => Promise<Array<string>>,
isLocationEnabled: () => Promise<boolean>,
getAvailableLocationProviders: () => Promise<Object>,
};