-
Notifications
You must be signed in to change notification settings - Fork 0
/
deviceinfo.d.ts
149 lines (143 loc) · 5.3 KB
/
deviceinfo.d.ts
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// should be imported this way:
// import DeviceInfo from 'react-native-device-info';
export type DeviceType = 'Handset' | 'Tablet' | 'Tv' | 'Unknown';
export type BatteryState = 'unknown' | 'unplugged' | 'charging' | 'full';
export interface PowerState {
batteryLevel: number;
batteryState: BatteryState;
lowPowerMode: boolean;
[key: string]: any;
}
export interface LocationProviderInfo {
[key: string]: boolean;
}
declare const _default: {
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: () => string | null;
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<PowerState>,
getPowerStateSync: () => PowerState,
isBatteryCharging:() => Promise<boolean>,
isBatteryChargingSync: () => boolean,
isLandscape: () => Promise<boolean>,
isLandscapeSync: () => boolean,
isAirplaneMode: () => Promise<boolean>,
isAirplaneModeSync: () => boolean,
getDeviceType: () => Promise<DeviceType>,
getDeviceTypeSync: () => DeviceType,
supportedAbis: () => Promise<string[]>,
supportedAbisSync: () => string[],
supported32BitAbis: () => Promise<string[]>,
supported32BitAbisSync: () => string[],
supported64BitAbis: () => Promise<string[]>,
supported64BitAbisSync: () => string[],
hasSystemFeature: (feature: string) => Promise<boolean>,
hasSystemFeatureSync: (feature: string) => boolean,
getSystemAvailableFeatures: () => Promise<string[]>,
getSystemAvailableFeaturesSync: () => string[],
isLocationEnabled: () => Promise<boolean>,
isLocationEnabledSync: () => boolean,
getAvailableLocationProviders: () => Promise<LocationProviderInfo>,
getAvailableLocationProvidersSync: () => LocationProviderInfo,
};
export default _default;