@extscreen/es-core 2.2.24 → 2.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +66 -65
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -128,14 +128,6 @@ class ESDeviceModule {
|
|
128
128
|
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getEthMac');
|
129
129
|
}
|
130
130
|
|
131
|
-
getUuid() {
|
132
|
-
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getUuid');
|
133
|
-
}
|
134
|
-
|
135
|
-
getClientType() {
|
136
|
-
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getClientType');
|
137
|
-
}
|
138
|
-
|
139
131
|
getTotalMemory() {
|
140
132
|
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getTotalMemory');
|
141
133
|
}
|
@@ -152,14 +144,6 @@ class ESDeviceModule {
|
|
152
144
|
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getScreenHeight');
|
153
145
|
}
|
154
146
|
|
155
|
-
getWindowWidth() {
|
156
|
-
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getWindowWidth');
|
157
|
-
}
|
158
|
-
|
159
|
-
getWindowHeight() {
|
160
|
-
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getWindowHeight');
|
161
|
-
}
|
162
|
-
|
163
147
|
getResolution() {
|
164
148
|
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getResolution');
|
165
149
|
}
|
@@ -188,7 +172,6 @@ class ESDeviceModule {
|
|
188
172
|
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getBuildBrand');
|
189
173
|
}
|
190
174
|
|
191
|
-
|
192
175
|
getBuildDevice() {
|
193
176
|
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getBuildDevice');
|
194
177
|
}
|
@@ -208,7 +191,6 @@ class ESDeviceModule {
|
|
208
191
|
getBuildManufacturer() {
|
209
192
|
return Vue.Native.callNativeWithPromise('AndroidDeviceModule', 'getBuildManufacturer');
|
210
193
|
}
|
211
|
-
|
212
194
|
}
|
213
195
|
|
214
196
|
var ESDeviceModule$1 = new ESDeviceModule();
|
@@ -240,8 +222,6 @@ var ESDeviceModule$1 = new ESDeviceModule();
|
|
240
222
|
}
|
241
223
|
|
242
224
|
*/
|
243
|
-
|
244
|
-
|
245
225
|
class ESDeviceManager {
|
246
226
|
|
247
227
|
//内存
|
@@ -252,13 +232,9 @@ class ESDeviceManager {
|
|
252
232
|
_screenWidth = 1920;
|
253
233
|
_screenHeight = 1080;
|
254
234
|
|
255
|
-
_windowWidth = 1920;
|
256
|
-
_windowHeight = 1080;
|
257
|
-
|
258
235
|
_androidAPILevel = 14;
|
236
|
+
_ipAddress = '';
|
259
237
|
|
260
|
-
_buildVersionRelease = '';
|
261
|
-
_buildManufacturer = '';
|
262
238
|
_deviceEthMac = '';
|
263
239
|
_deviceWifiMac = '';
|
264
240
|
|
@@ -266,17 +242,13 @@ class ESDeviceManager {
|
|
266
242
|
_deviceType = '';
|
267
243
|
|
268
244
|
_resolution = '';
|
269
|
-
_ipAddress = '';
|
270
|
-
_totalStore = '';
|
271
|
-
_freeStore = '';
|
272
|
-
_buildSerial = '';
|
273
|
-
_blueToothName = '';
|
274
|
-
|
275
|
-
_device = null;
|
276
|
-
|
277
245
|
_density = '';
|
278
246
|
_densityDpi = '';
|
279
247
|
_scaledDensity = '';
|
248
|
+
|
249
|
+
_buildSerial = '';
|
250
|
+
_buildVersionRelease = '';
|
251
|
+
_buildManufacturer = '';
|
280
252
|
_buildModel = '';
|
281
253
|
_buildBrand = '';
|
282
254
|
_buildDevice = '';
|
@@ -284,6 +256,8 @@ class ESDeviceManager {
|
|
284
256
|
_buildHardware = '';
|
285
257
|
_buildSDKVersion = 1;
|
286
258
|
|
259
|
+
_device = null;
|
260
|
+
|
287
261
|
init() {
|
288
262
|
return new Promise((resolve, reject) => {
|
289
263
|
this.initAndroidDevice();
|
@@ -306,8 +280,6 @@ class ESDeviceManager {
|
|
306
280
|
|
307
281
|
this._screenWidth = device.screenWidth;
|
308
282
|
this._screenHeight = device.screenHeight;
|
309
|
-
this._windowWidth = device.windowWidth;
|
310
|
-
this._windowHeight = device.windowHeight;
|
311
283
|
|
312
284
|
this._resolution = device.resolution;
|
313
285
|
this._density = device.density;
|
@@ -323,12 +295,7 @@ class ESDeviceManager {
|
|
323
295
|
this._buildManufacturer = device.buildManufacturer;
|
324
296
|
this._buildSerial = device.buildSerial;
|
325
297
|
|
326
|
-
this._totalStore = device.totalStore;
|
327
|
-
this._freeStore = device.freeStore;
|
328
|
-
|
329
298
|
this._ipAddress = device.ipAddress;
|
330
|
-
this._blueToothName = device.blueToothName;
|
331
|
-
|
332
299
|
}
|
333
300
|
} catch (e) {
|
334
301
|
}
|
@@ -400,22 +367,10 @@ class ESDeviceManager {
|
|
400
367
|
return this._ipAddress;
|
401
368
|
}
|
402
369
|
|
403
|
-
getTotalStore() {
|
404
|
-
return this._totalStore;
|
405
|
-
}
|
406
|
-
|
407
|
-
getFreeStore() {
|
408
|
-
return this._freeStore;
|
409
|
-
}
|
410
|
-
|
411
370
|
getBuildSerial() {
|
412
371
|
return this._buildSerial;
|
413
372
|
}
|
414
373
|
|
415
|
-
getBlueToothName() {
|
416
|
-
return this._blueToothName;
|
417
|
-
}
|
418
|
-
|
419
374
|
getBuildBrand() {
|
420
375
|
return this._buildBrand;
|
421
376
|
}
|
@@ -448,14 +403,6 @@ class ESDeviceManager {
|
|
448
403
|
return this._screenHeight
|
449
404
|
}
|
450
405
|
|
451
|
-
getWindowWidth() {
|
452
|
-
return this._windowWidth
|
453
|
-
}
|
454
|
-
|
455
|
-
getWindowHeight() {
|
456
|
-
return this._windowHeight
|
457
|
-
}
|
458
|
-
|
459
406
|
getDensity() {
|
460
407
|
return this._density;
|
461
408
|
}
|
@@ -1774,27 +1721,57 @@ class ESStorageModule {
|
|
1774
1721
|
|
1775
1722
|
getCacheDir() {
|
1776
1723
|
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1777
|
-
'getCacheDir'
|
1724
|
+
'getCacheDir');
|
1778
1725
|
}
|
1779
1726
|
|
1780
1727
|
getFilesDir() {
|
1781
1728
|
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1782
|
-
'getFilesDir'
|
1729
|
+
'getFilesDir');
|
1783
1730
|
}
|
1784
1731
|
|
1785
1732
|
getExternalCacheDir() {
|
1786
1733
|
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1787
|
-
'getExternalCacheDir'
|
1734
|
+
'getExternalCacheDir');
|
1788
1735
|
}
|
1789
1736
|
|
1790
1737
|
getExternalStorageState() {
|
1791
1738
|
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1792
|
-
'getExternalStorageState'
|
1739
|
+
'getExternalStorageState');
|
1793
1740
|
}
|
1794
1741
|
|
1795
1742
|
hasExternalStoragePermission() {
|
1796
1743
|
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1797
|
-
'hasExternalStoragePermission'
|
1744
|
+
'hasExternalStoragePermission');
|
1745
|
+
}
|
1746
|
+
|
1747
|
+
getInternalStorageTotalSize() {
|
1748
|
+
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1749
|
+
'getInternalStorageTotalSize');
|
1750
|
+
}
|
1751
|
+
|
1752
|
+
getInternalStorageAvailableSize() {
|
1753
|
+
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1754
|
+
'getInternalStorageAvailableSize');
|
1755
|
+
}
|
1756
|
+
|
1757
|
+
getExternalStorageTotalSize() {
|
1758
|
+
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1759
|
+
'getExternalStorageTotalSize');
|
1760
|
+
}
|
1761
|
+
|
1762
|
+
getExternalStorageAvailableSize() {
|
1763
|
+
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1764
|
+
'getExternalStorageAvailableSize');
|
1765
|
+
}
|
1766
|
+
|
1767
|
+
getStorageTotalSize(filePath) {
|
1768
|
+
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1769
|
+
'getStorageTotalSize', filePath);
|
1770
|
+
}
|
1771
|
+
|
1772
|
+
getStorageAvailableSize(filePath) {
|
1773
|
+
return Vue.Native.callNativeWithPromise('AndroidStorageModule',
|
1774
|
+
'getStorageAvailableSize', filePath);
|
1798
1775
|
}
|
1799
1776
|
}
|
1800
1777
|
|
@@ -1829,6 +1806,30 @@ class ESStorageManager {
|
|
1829
1806
|
hasExternalStoragePermission() {
|
1830
1807
|
return ESStorageModule$1.hasExternalStoragePermission();
|
1831
1808
|
}
|
1809
|
+
|
1810
|
+
getInternalStorageTotalSize() {
|
1811
|
+
return ESStorageModule$1.getInternalStorageTotalSize();
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
getInternalStorageAvailableSize() {
|
1815
|
+
return ESStorageModule$1.getInternalStorageAvailableSize();
|
1816
|
+
}
|
1817
|
+
|
1818
|
+
getExternalStorageTotalSize() {
|
1819
|
+
return ESStorageModule$1.getExternalStorageTotalSize();
|
1820
|
+
}
|
1821
|
+
|
1822
|
+
getExternalStorageAvailableSize() {
|
1823
|
+
return ESStorageModule$1.getExternalStorageAvailableSize();
|
1824
|
+
}
|
1825
|
+
|
1826
|
+
getStorageTotalSize(filePath) {
|
1827
|
+
return ESStorageModule$1.getStorageTotalSize(filePath);
|
1828
|
+
}
|
1829
|
+
|
1830
|
+
getStorageAvailableSize(filePath) {
|
1831
|
+
return ESStorageModule$1.getStorageAvailableSize(filePath);
|
1832
|
+
}
|
1832
1833
|
}
|
1833
1834
|
|
1834
1835
|
var ESStorageManager$1 = new ESStorageManager();
|