-
Notifications
You must be signed in to change notification settings - Fork 0
/
deviceinfo.js.flow
134 lines (132 loc) · 4.98 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// @flow
export type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Unknown';
declare module.exports: {
getUniqueId: () => Promise<string>,
getUniqueIdSync: () => string,
getManufacturer: () => Promise<string>,
getManufacturerSync: () => string,
getBrand: () => Promise<string>,
getBrandSync: () => string,
getModel: () => Promise<string>,
getModelSync: () => string,
getDeviceId: () => Promise<string>,
getDeviceIdSync: () => string,
getSystemName: () => Promise<string>,
getSystemNameSync: () => string,
getSystemVersion: () => Promise<string>,
getSystemVersionSync: () => string,
getBuildId: () => Promise<string>,
getBuildIdSync: () => string,
getBundleId: () => Promise<string>,
getBundleIdSync: () => string,
getApplicationName: () => Promise<string>,
getApplicationNameSync: () => string,
getBuildNumber: () => Promise<string>,
getBuildNumberSync: () => string,
getVersion: () => Promise<string>,
getVersionSync: () => string,
getReadableVersion: () => Promise<string>,
getReadableVersionSync: () => string,
getDeviceName: () => Promise<string>,
getDeviceNameSync: () => string,
getUsedMemory: () => Promise<number>,
getUsedMemorySync: () => number,
getUserAgent: () => Promise<string>,
getUserAgentSync: () => string,
getInstanceId: () => Promise<string>,
getInstanceIdSync: () => string,
getInstallReferrer: () => Promise<string>,
getInstallReferrerSync: () => string,
isEmulator: () => Promise<boolean>,
isEmulatorSync: () => boolean,
isTablet: () => Promise<boolean>,
isTabletSync: () => boolean,
getFontScale: () => Promise<number>,
getFontScaleSync: () => number,
getBootloader: () => Promise<string>,
getBootloaderSync: () => string,
getDevice: () => Promise<string>,
getDeviceSync: () => string,
getDisplay: () => Promise<string>,
getDisplaySync: () => string,
getFingerprint: () => Promise<string>,
getFingerprintSync: () => string,
getHardware: () => Promise<string>,
getHardwareSync: () => string,
getHost: () => Promise<string>,
getHostSync: () => string,
getProduct: () => Promise<string>,
getProductSync: () => string,
getTags: () => Promise<string>,
getTagsSync: () => string,
getType: () => Promise<string>,
getTypeSync: () => string,
getBaseOs: () => Promise<string>,
getBaseOsSync: () => string,
getPreviewSdkInt: () => Promise<number>,
getPreviewSdkIntSync: () => number,
getSecurityPatch: () => Promise<string>,
getSecurityPatchSync: () => string,
getCodename: () => Promise<string>,
getCodenameSync: () => string,
getIncremental: () => Promise<string>,
getIncrementalSync: () => string,
isPinOrFingerprintSet: () => Promise<boolean>,
isPinOrFingerprintSetSync: () => boolean,
hasNotch: () => Promise<boolean>,
hasNotchSync: () => boolean,
getFirstInstallTime: () => Promise<number>,
getFirstInstallTimeSync: () => number,
getLastUpdateTime: () => Promise<number>,
getLastUpdateTimeSync: () => number,
getSerialNumber: () => Promise<string>,
getSerialNumberSync: () => string,
getAndroidId: () => Promise<string>,
getAndroidIdSync: () => string,
getApiLevel: () => Promise<number>,
getApiLevelSync: () => number,
getIpAddress: () => Promise<string>,
getIpAddressSync: () => string,
getCameraPresence: () => Promise<boolean>,
getCameraPresenceSync: () => boolean,
getMacAddress: () => Promise<string>,
getMacAddressSync: () => string,
getPhoneNumber: () => Promise<?string>,
getPhoneNumberSync: () => ?string,
getCarrier: () => Promise<string>,
getCarrierSync: () => string,
getTotalMemory: () => Promise<number>,
getTotalMemorySync: () => number,
getMaxMemory: () => Promise<number>,
getMaxMemorySync: () => number,
getTotalDiskCapacity: () => Promise<number>,
getTotalDiskCapacitySync: () => number,
getFreeDiskStorage: () => Promise<number>,
getFreeDiskStorageSync: () => number,
getBatteryLevel: () => Promise<number>,
getBatteryLevelSync: () => number,
getPowerState: () => Promise<Object>,
getPowerStateSync: () => Object,
isBatteryCharging:() => Promise<boolean>,
isBatteryChargingSync: () => boolean,
isLandscape: () => Promise<boolean>,
isLandscapeSync: () => boolean,
isAirplaneMode: () => Promise<boolean>,
isAirplaneModeSync: () => boolean,
getDeviceType: () => Promise<DeviceType>,
getDeviceTypeSync: () => DeviceType,
supportedAbis: () => Promise<Array<string>>,
supportedAbisSync: () => Array<string>,
supported32BitAbis: () => Promise<Array<string>>,
supported32BitAbisSync: () => Array<string>,
supported64BitAbis: () => Promise<Array<string>>,
supported64BitAbisSync: () => Array<string>,
hasSystemFeature: (feature: string) => Promise<boolean>,
hasSystemFeatureSync: (feature: string) => boolean,
getSystemAvailableFeatures: () => Promise<Array<string>>,
getSystemAvailableFeaturesSync: () => Array<string>,
isLocationEnabled: () => Promise<boolean>,
isLocationEnabledSync: () => boolean,
getAvailableLocationProviders: () => Promise<Object>,
getAvailableLocationProvidersSync: () => Object,
};