@signageos/front-applet 8.6.0 → 8.7.0
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/bundle.js +7 -7
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +0 -270
- package/docs/sos/browser.md +0 -14
- package/docs/sos/command.md +0 -18
- package/docs/sos/deviceInfo.md +0 -17
- package/docs/sos/display.md +0 -8
- package/docs/sos/fileSystem.md +0 -488
- package/docs/sos/hardware/index.md +2 -49
- package/docs/sos/input.md +0 -12
- package/docs/sos/native/mdc.md +1 -35
- package/docs/sos/native/nmc.md +127 -0
- package/docs/sos/offline/cache.md +0 -6
- package/docs/sos/offline/index.md +0 -27
- package/docs/sos/proofOfPlay.md +0 -10
- package/docs/sos/stream.md +11 -781
- package/docs/sos/sync.md +0 -23
- package/docs/sos/video.md +0 -86
- package/docs/sos_management/app.md +32 -29
- package/docs/sos_management/index.md +0 -8
- package/docs/sos_management/network.md +0 -19
- package/docs/sos_management/os.md +0 -11
- package/docs/sos_management/power.md +50 -30
- package/docs/sos_management/screen.md +0 -7
- package/docs/sos_management/time.md +0 -3
- package/docs/sos_management/wifi.md +0 -101
- package/es6/FrontApplet/Management/App/App.d.ts +34 -24
- package/es6/FrontApplet/Management/App/App.js.map +1 -1
- package/es6/FrontApplet/Management/Power/IPower.d.ts +32 -10
- package/es6/FrontApplet/Management/Power/IPower.js +3 -0
- package/es6/FrontApplet/Management/Power/IPower.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +12 -8
- package/es6/FrontApplet/Management/Power/Power.js +23 -32
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Power/PowerHelper.d.ts +8 -3
- package/es6/FrontApplet/Management/Power/PowerHelper.js +32 -0
- package/es6/FrontApplet/Management/Power/PowerHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/ProprietaryTimerHelper.d.ts +2 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.d.ts +3 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -0
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.d.ts +4 -0
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js +66 -0
- package/es6/FrontApplet/NativeCommands/NMC/CommandsNmc.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.d.ts +21 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js +3 -0
- package/es6/FrontApplet/NativeCommands/NMC/INativeNmcCommands.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.d.ts +50 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.js +77 -0
- package/es6/FrontApplet/NativeCommands/NMC/Nmc.js.map +1 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +2 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js +3 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
- package/es6/FrontApplet/Video/IOptions.d.ts +5 -0
- package/es6/Monitoring/Management/Power/powerCommands.d.ts +3 -3
- package/package.json +1 -1
package/docs/sos/fileSystem.md
CHANGED
|
@@ -66,43 +66,16 @@ Only string can be appended to the file. If you want to append binary data, you
|
|
|
66
66
|
```ts expandable
|
|
67
67
|
appendFile(filePath: IFilePath, contents: string): Promise<void>;
|
|
68
68
|
// show-more
|
|
69
|
-
/**
|
|
70
|
-
* Base File System interface for methods.
|
|
71
|
-
*/
|
|
72
69
|
interface IFilePath {
|
|
73
|
-
/**
|
|
74
|
-
* Storage unit which is selected for performing file operations.
|
|
75
|
-
*/
|
|
76
70
|
storageUnit: IStorageUnit;
|
|
77
|
-
/**
|
|
78
|
-
* File path within the storage unit.
|
|
79
|
-
*/
|
|
80
71
|
filePath: string;
|
|
81
72
|
}
|
|
82
73
|
|
|
83
|
-
/**
|
|
84
|
-
* File System Storage Unit returned by the File System API.
|
|
85
|
-
*/
|
|
86
74
|
interface IStorageUnit {
|
|
87
|
-
/**
|
|
88
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
89
|
-
*/
|
|
90
75
|
type: string;
|
|
91
|
-
/**
|
|
92
|
-
* The total capacity of the storage unit in bytes.
|
|
93
|
-
*/
|
|
94
76
|
capacity: number;
|
|
95
|
-
/**
|
|
96
|
-
* The amount of free space available in the storage unit in bytes.
|
|
97
|
-
*/
|
|
98
77
|
freeSpace: number;
|
|
99
|
-
/**
|
|
100
|
-
* The amount of usable space in the storage unit in bytes.
|
|
101
|
-
*/
|
|
102
78
|
usableSpace: number;
|
|
103
|
-
/**
|
|
104
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
105
|
-
*/
|
|
106
79
|
removable: boolean;
|
|
107
80
|
}
|
|
108
81
|
|
|
@@ -148,43 +121,16 @@ The `copyFile()` method creates a copy of file from `sourceFilePath` to `destina
|
|
|
148
121
|
```ts expandable
|
|
149
122
|
copyFile(sourceFilePath: IFilePath, destinationFilePath: IFilePath, options?: ICopyFileOptions): Promise<void>;
|
|
150
123
|
// show-more
|
|
151
|
-
/**
|
|
152
|
-
* Base File System interface for methods.
|
|
153
|
-
*/
|
|
154
124
|
interface IFilePath {
|
|
155
|
-
/**
|
|
156
|
-
* Storage unit which is selected for performing file operations.
|
|
157
|
-
*/
|
|
158
125
|
storageUnit: IStorageUnit;
|
|
159
|
-
/**
|
|
160
|
-
* File path within the storage unit.
|
|
161
|
-
*/
|
|
162
126
|
filePath: string;
|
|
163
127
|
}
|
|
164
128
|
|
|
165
|
-
/**
|
|
166
|
-
* File System Storage Unit returned by the File System API.
|
|
167
|
-
*/
|
|
168
129
|
interface IStorageUnit {
|
|
169
|
-
/**
|
|
170
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
171
|
-
*/
|
|
172
130
|
type: string;
|
|
173
|
-
/**
|
|
174
|
-
* The total capacity of the storage unit in bytes.
|
|
175
|
-
*/
|
|
176
131
|
capacity: number;
|
|
177
|
-
/**
|
|
178
|
-
* The amount of free space available in the storage unit in bytes.
|
|
179
|
-
*/
|
|
180
132
|
freeSpace: number;
|
|
181
|
-
/**
|
|
182
|
-
* The amount of usable space in the storage unit in bytes.
|
|
183
|
-
*/
|
|
184
133
|
usableSpace: number;
|
|
185
|
-
/**
|
|
186
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
187
|
-
*/
|
|
188
134
|
removable: boolean;
|
|
189
135
|
}
|
|
190
136
|
|
|
@@ -251,43 +197,16 @@ The `createArchive()` method creates an archive file from selected files and dir
|
|
|
251
197
|
```ts expandable
|
|
252
198
|
createArchive(archiveFilePath: IFilePath, archiveEntries: IFilePath[]): Promise<void>;
|
|
253
199
|
// show-more
|
|
254
|
-
/**
|
|
255
|
-
* Base File System interface for methods.
|
|
256
|
-
*/
|
|
257
200
|
interface IFilePath {
|
|
258
|
-
/**
|
|
259
|
-
* Storage unit which is selected for performing file operations.
|
|
260
|
-
*/
|
|
261
201
|
storageUnit: IStorageUnit;
|
|
262
|
-
/**
|
|
263
|
-
* File path within the storage unit.
|
|
264
|
-
*/
|
|
265
202
|
filePath: string;
|
|
266
203
|
}
|
|
267
204
|
|
|
268
|
-
/**
|
|
269
|
-
* File System Storage Unit returned by the File System API.
|
|
270
|
-
*/
|
|
271
205
|
interface IStorageUnit {
|
|
272
|
-
/**
|
|
273
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
274
|
-
*/
|
|
275
206
|
type: string;
|
|
276
|
-
/**
|
|
277
|
-
* The total capacity of the storage unit in bytes.
|
|
278
|
-
*/
|
|
279
207
|
capacity: number;
|
|
280
|
-
/**
|
|
281
|
-
* The amount of free space available in the storage unit in bytes.
|
|
282
|
-
*/
|
|
283
208
|
freeSpace: number;
|
|
284
|
-
/**
|
|
285
|
-
* The amount of usable space in the storage unit in bytes.
|
|
286
|
-
*/
|
|
287
209
|
usableSpace: number;
|
|
288
|
-
/**
|
|
289
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
290
|
-
*/
|
|
291
210
|
removable: boolean;
|
|
292
211
|
}
|
|
293
212
|
|
|
@@ -354,43 +273,16 @@ The `createDirectory()` method create a new directory at specified path.
|
|
|
354
273
|
```ts expandable
|
|
355
274
|
createDirectory(directoryPath: IFilePath): Promise<void>;
|
|
356
275
|
// show-more
|
|
357
|
-
/**
|
|
358
|
-
* Base File System interface for methods.
|
|
359
|
-
*/
|
|
360
276
|
interface IFilePath {
|
|
361
|
-
/**
|
|
362
|
-
* Storage unit which is selected for performing file operations.
|
|
363
|
-
*/
|
|
364
277
|
storageUnit: IStorageUnit;
|
|
365
|
-
/**
|
|
366
|
-
* File path within the storage unit.
|
|
367
|
-
*/
|
|
368
278
|
filePath: string;
|
|
369
279
|
}
|
|
370
280
|
|
|
371
|
-
/**
|
|
372
|
-
* File System Storage Unit returned by the File System API.
|
|
373
|
-
*/
|
|
374
281
|
interface IStorageUnit {
|
|
375
|
-
/**
|
|
376
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
377
|
-
*/
|
|
378
282
|
type: string;
|
|
379
|
-
/**
|
|
380
|
-
* The total capacity of the storage unit in bytes.
|
|
381
|
-
*/
|
|
382
283
|
capacity: number;
|
|
383
|
-
/**
|
|
384
|
-
* The amount of free space available in the storage unit in bytes.
|
|
385
|
-
*/
|
|
386
284
|
freeSpace: number;
|
|
387
|
-
/**
|
|
388
|
-
* The amount of usable space in the storage unit in bytes.
|
|
389
|
-
*/
|
|
390
285
|
usableSpace: number;
|
|
391
|
-
/**
|
|
392
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
393
|
-
*/
|
|
394
286
|
removable: boolean;
|
|
395
287
|
}
|
|
396
288
|
|
|
@@ -434,43 +326,16 @@ The `deleteFile()` method deletes the file specified by `filePath`.
|
|
|
434
326
|
```ts expandable
|
|
435
327
|
deleteFile(filePath: IFilePath, recursive: boolean): Promise<void>;
|
|
436
328
|
// show-more
|
|
437
|
-
/**
|
|
438
|
-
* Base File System interface for methods.
|
|
439
|
-
*/
|
|
440
329
|
interface IFilePath {
|
|
441
|
-
/**
|
|
442
|
-
* Storage unit which is selected for performing file operations.
|
|
443
|
-
*/
|
|
444
330
|
storageUnit: IStorageUnit;
|
|
445
|
-
/**
|
|
446
|
-
* File path within the storage unit.
|
|
447
|
-
*/
|
|
448
331
|
filePath: string;
|
|
449
332
|
}
|
|
450
333
|
|
|
451
|
-
/**
|
|
452
|
-
* File System Storage Unit returned by the File System API.
|
|
453
|
-
*/
|
|
454
334
|
interface IStorageUnit {
|
|
455
|
-
/**
|
|
456
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
457
|
-
*/
|
|
458
335
|
type: string;
|
|
459
|
-
/**
|
|
460
|
-
* The total capacity of the storage unit in bytes.
|
|
461
|
-
*/
|
|
462
336
|
capacity: number;
|
|
463
|
-
/**
|
|
464
|
-
* The amount of free space available in the storage unit in bytes.
|
|
465
|
-
*/
|
|
466
337
|
freeSpace: number;
|
|
467
|
-
/**
|
|
468
|
-
* The amount of usable space in the storage unit in bytes.
|
|
469
|
-
*/
|
|
470
338
|
usableSpace: number;
|
|
471
|
-
/**
|
|
472
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
473
|
-
*/
|
|
474
339
|
removable: boolean;
|
|
475
340
|
}
|
|
476
341
|
|
|
@@ -557,43 +422,16 @@ The standard is supported on all following platforms:
|
|
|
557
422
|
```ts expandable
|
|
558
423
|
downloadFile(filePath: IFilePath, sourceUri: string, headers?: IHeaders): Promise<void>;
|
|
559
424
|
// show-more
|
|
560
|
-
/**
|
|
561
|
-
* Base File System interface for methods.
|
|
562
|
-
*/
|
|
563
425
|
interface IFilePath {
|
|
564
|
-
/**
|
|
565
|
-
* Storage unit which is selected for performing file operations.
|
|
566
|
-
*/
|
|
567
426
|
storageUnit: IStorageUnit;
|
|
568
|
-
/**
|
|
569
|
-
* File path within the storage unit.
|
|
570
|
-
*/
|
|
571
427
|
filePath: string;
|
|
572
428
|
}
|
|
573
429
|
|
|
574
|
-
/**
|
|
575
|
-
* File System Storage Unit returned by the File System API.
|
|
576
|
-
*/
|
|
577
430
|
interface IStorageUnit {
|
|
578
|
-
/**
|
|
579
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
580
|
-
*/
|
|
581
431
|
type: string;
|
|
582
|
-
/**
|
|
583
|
-
* The total capacity of the storage unit in bytes.
|
|
584
|
-
*/
|
|
585
432
|
capacity: number;
|
|
586
|
-
/**
|
|
587
|
-
* The amount of free space available in the storage unit in bytes.
|
|
588
|
-
*/
|
|
589
433
|
freeSpace: number;
|
|
590
|
-
/**
|
|
591
|
-
* The amount of usable space in the storage unit in bytes.
|
|
592
|
-
*/
|
|
593
434
|
usableSpace: number;
|
|
594
|
-
/**
|
|
595
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
596
|
-
*/
|
|
597
435
|
removable: boolean;
|
|
598
436
|
}
|
|
599
437
|
|
|
@@ -647,43 +485,16 @@ The `exists()` method checks whether a file or directory exists.
|
|
|
647
485
|
```ts expandable
|
|
648
486
|
exists(filePath: IFilePath): Promise<boolean>;
|
|
649
487
|
// show-more
|
|
650
|
-
/**
|
|
651
|
-
* Base File System interface for methods.
|
|
652
|
-
*/
|
|
653
488
|
interface IFilePath {
|
|
654
|
-
/**
|
|
655
|
-
* Storage unit which is selected for performing file operations.
|
|
656
|
-
*/
|
|
657
489
|
storageUnit: IStorageUnit;
|
|
658
|
-
/**
|
|
659
|
-
* File path within the storage unit.
|
|
660
|
-
*/
|
|
661
490
|
filePath: string;
|
|
662
491
|
}
|
|
663
492
|
|
|
664
|
-
/**
|
|
665
|
-
* File System Storage Unit returned by the File System API.
|
|
666
|
-
*/
|
|
667
493
|
interface IStorageUnit {
|
|
668
|
-
/**
|
|
669
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
670
|
-
*/
|
|
671
494
|
type: string;
|
|
672
|
-
/**
|
|
673
|
-
* The total capacity of the storage unit in bytes.
|
|
674
|
-
*/
|
|
675
495
|
capacity: number;
|
|
676
|
-
/**
|
|
677
|
-
* The amount of free space available in the storage unit in bytes.
|
|
678
|
-
*/
|
|
679
496
|
freeSpace: number;
|
|
680
|
-
/**
|
|
681
|
-
* The amount of usable space in the storage unit in bytes.
|
|
682
|
-
*/
|
|
683
497
|
usableSpace: number;
|
|
684
|
-
/**
|
|
685
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
686
|
-
*/
|
|
687
498
|
removable: boolean;
|
|
688
499
|
}
|
|
689
500
|
|
|
@@ -731,49 +542,19 @@ The `extractFile()` method extract (recursively) the archive file at `archiveFil
|
|
|
731
542
|
```ts expandable
|
|
732
543
|
extractFile(archiveFilePath: IFilePath, destinationDirectoryPath: IFilePath, method: ExtractMethodType): Promise<void>;
|
|
733
544
|
// show-more
|
|
734
|
-
/**
|
|
735
|
-
* Base File System interface for methods.
|
|
736
|
-
*/
|
|
737
545
|
interface IFilePath {
|
|
738
|
-
/**
|
|
739
|
-
* Storage unit which is selected for performing file operations.
|
|
740
|
-
*/
|
|
741
546
|
storageUnit: IStorageUnit;
|
|
742
|
-
/**
|
|
743
|
-
* File path within the storage unit.
|
|
744
|
-
*/
|
|
745
547
|
filePath: string;
|
|
746
548
|
}
|
|
747
549
|
|
|
748
|
-
/**
|
|
749
|
-
* File System Storage Unit returned by the File System API.
|
|
750
|
-
*/
|
|
751
550
|
interface IStorageUnit {
|
|
752
|
-
/**
|
|
753
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
754
|
-
*/
|
|
755
551
|
type: string;
|
|
756
|
-
/**
|
|
757
|
-
* The total capacity of the storage unit in bytes.
|
|
758
|
-
*/
|
|
759
552
|
capacity: number;
|
|
760
|
-
/**
|
|
761
|
-
* The amount of free space available in the storage unit in bytes.
|
|
762
|
-
*/
|
|
763
553
|
freeSpace: number;
|
|
764
|
-
/**
|
|
765
|
-
* The amount of usable space in the storage unit in bytes.
|
|
766
|
-
*/
|
|
767
554
|
usableSpace: number;
|
|
768
|
-
/**
|
|
769
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
770
|
-
*/
|
|
771
555
|
removable: boolean;
|
|
772
556
|
}
|
|
773
557
|
|
|
774
|
-
/**
|
|
775
|
-
* Allowed extract method types for `extractFile()` operations.
|
|
776
|
-
*/
|
|
777
558
|
type ExtractMethodType = 'zip' | AnyString;
|
|
778
559
|
|
|
779
560
|
type AnyString = string & {};
|
|
@@ -824,67 +605,26 @@ Return statement is a dynamic object! It has to be always generated and retrieve
|
|
|
824
605
|
```ts expandable
|
|
825
606
|
getFile(filePath: IFilePath): Promise<IFile | null>;
|
|
826
607
|
// show-more
|
|
827
|
-
/**
|
|
828
|
-
* Properties of returned file from File System API.
|
|
829
|
-
*/
|
|
830
608
|
interface IFile extends IFilePath {
|
|
831
609
|
localUri: string;
|
|
832
|
-
/**
|
|
833
|
-
* Image thumbnail URI of the file, which can be used to display a preview of the file.
|
|
834
|
-
* Note: Supported only on Linux.
|
|
835
|
-
*/
|
|
836
610
|
imageThumbnailUriTemplate?: string;
|
|
837
|
-
/**
|
|
838
|
-
* Video thumbnail URI of the file, which can be used to display a preview of the file.
|
|
839
|
-
* Note: Supported only on Linux.
|
|
840
|
-
*/
|
|
841
611
|
videoThumbnailUriTemplate?: string;
|
|
842
|
-
/**
|
|
843
|
-
* Date and time when the file was created in milliseconds since the epoch.
|
|
844
|
-
*/
|
|
845
612
|
createdAt?: number;
|
|
846
613
|
lastModifiedAt?: number;
|
|
847
614
|
sizeBytes?: number;
|
|
848
615
|
mimeType?: string;
|
|
849
616
|
}
|
|
850
617
|
|
|
851
|
-
/**
|
|
852
|
-
* Base File System interface for methods.
|
|
853
|
-
*/
|
|
854
618
|
interface IFilePath {
|
|
855
|
-
/**
|
|
856
|
-
* Storage unit which is selected for performing file operations.
|
|
857
|
-
*/
|
|
858
619
|
storageUnit: IStorageUnit;
|
|
859
|
-
/**
|
|
860
|
-
* File path within the storage unit.
|
|
861
|
-
*/
|
|
862
620
|
filePath: string;
|
|
863
621
|
}
|
|
864
622
|
|
|
865
|
-
/**
|
|
866
|
-
* File System Storage Unit returned by the File System API.
|
|
867
|
-
*/
|
|
868
623
|
interface IStorageUnit {
|
|
869
|
-
/**
|
|
870
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
871
|
-
*/
|
|
872
624
|
type: string;
|
|
873
|
-
/**
|
|
874
|
-
* The total capacity of the storage unit in bytes.
|
|
875
|
-
*/
|
|
876
625
|
capacity: number;
|
|
877
|
-
/**
|
|
878
|
-
* The amount of free space available in the storage unit in bytes.
|
|
879
|
-
*/
|
|
880
626
|
freeSpace: number;
|
|
881
|
-
/**
|
|
882
|
-
* The amount of usable space in the storage unit in bytes.
|
|
883
|
-
*/
|
|
884
627
|
usableSpace: number;
|
|
885
|
-
/**
|
|
886
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
887
|
-
*/
|
|
888
628
|
removable: boolean;
|
|
889
629
|
}
|
|
890
630
|
|
|
@@ -935,49 +675,19 @@ Reason: MD5 file checksum is not available on any Tizen displays due to the Sams
|
|
|
935
675
|
```ts expandable
|
|
936
676
|
getFileChecksum(filePath: IFilePath, hashType: HashAlgorithm): Promise<string>;
|
|
937
677
|
// show-more
|
|
938
|
-
/**
|
|
939
|
-
* Base File System interface for methods.
|
|
940
|
-
*/
|
|
941
678
|
interface IFilePath {
|
|
942
|
-
/**
|
|
943
|
-
* Storage unit which is selected for performing file operations.
|
|
944
|
-
*/
|
|
945
679
|
storageUnit: IStorageUnit;
|
|
946
|
-
/**
|
|
947
|
-
* File path within the storage unit.
|
|
948
|
-
*/
|
|
949
680
|
filePath: string;
|
|
950
681
|
}
|
|
951
682
|
|
|
952
|
-
/**
|
|
953
|
-
* File System Storage Unit returned by the File System API.
|
|
954
|
-
*/
|
|
955
683
|
interface IStorageUnit {
|
|
956
|
-
/**
|
|
957
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
958
|
-
*/
|
|
959
684
|
type: string;
|
|
960
|
-
/**
|
|
961
|
-
* The total capacity of the storage unit in bytes.
|
|
962
|
-
*/
|
|
963
685
|
capacity: number;
|
|
964
|
-
/**
|
|
965
|
-
* The amount of free space available in the storage unit in bytes.
|
|
966
|
-
*/
|
|
967
686
|
freeSpace: number;
|
|
968
|
-
/**
|
|
969
|
-
* The amount of usable space in the storage unit in bytes.
|
|
970
|
-
*/
|
|
971
687
|
usableSpace: number;
|
|
972
|
-
/**
|
|
973
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
974
|
-
*/
|
|
975
688
|
removable: boolean;
|
|
976
689
|
}
|
|
977
690
|
|
|
978
|
-
/**
|
|
979
|
-
* Represents the supported hash algorithms by Core Apps.
|
|
980
|
-
*/
|
|
981
691
|
type HashAlgorithm = 'md5' | 'crc32' | AnyString;
|
|
982
692
|
|
|
983
693
|
type AnyString = string & {};
|
|
@@ -1024,43 +734,16 @@ The `isDirectory()` method checks whether the file path points to a directory.
|
|
|
1024
734
|
```ts expandable
|
|
1025
735
|
isDirectory(filePath: IFilePath): Promise<boolean>;
|
|
1026
736
|
// show-more
|
|
1027
|
-
/**
|
|
1028
|
-
* Base File System interface for methods.
|
|
1029
|
-
*/
|
|
1030
737
|
interface IFilePath {
|
|
1031
|
-
/**
|
|
1032
|
-
* Storage unit which is selected for performing file operations.
|
|
1033
|
-
*/
|
|
1034
738
|
storageUnit: IStorageUnit;
|
|
1035
|
-
/**
|
|
1036
|
-
* File path within the storage unit.
|
|
1037
|
-
*/
|
|
1038
739
|
filePath: string;
|
|
1039
740
|
}
|
|
1040
741
|
|
|
1041
|
-
/**
|
|
1042
|
-
* File System Storage Unit returned by the File System API.
|
|
1043
|
-
*/
|
|
1044
742
|
interface IStorageUnit {
|
|
1045
|
-
/**
|
|
1046
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1047
|
-
*/
|
|
1048
743
|
type: string;
|
|
1049
|
-
/**
|
|
1050
|
-
* The total capacity of the storage unit in bytes.
|
|
1051
|
-
*/
|
|
1052
744
|
capacity: number;
|
|
1053
|
-
/**
|
|
1054
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1055
|
-
*/
|
|
1056
745
|
freeSpace: number;
|
|
1057
|
-
/**
|
|
1058
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1059
|
-
*/
|
|
1060
746
|
usableSpace: number;
|
|
1061
|
-
/**
|
|
1062
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1063
|
-
*/
|
|
1064
747
|
removable: boolean;
|
|
1065
748
|
}
|
|
1066
749
|
|
|
@@ -1110,43 +793,16 @@ This method is only available on Linux devices.
|
|
|
1110
793
|
```ts expandable
|
|
1111
794
|
link(sourceFilePath: IFilePath, destinationFilePath: IFilePath): Promise<void>;
|
|
1112
795
|
// show-more
|
|
1113
|
-
/**
|
|
1114
|
-
* Base File System interface for methods.
|
|
1115
|
-
*/
|
|
1116
796
|
interface IFilePath {
|
|
1117
|
-
/**
|
|
1118
|
-
* Storage unit which is selected for performing file operations.
|
|
1119
|
-
*/
|
|
1120
797
|
storageUnit: IStorageUnit;
|
|
1121
|
-
/**
|
|
1122
|
-
* File path within the storage unit.
|
|
1123
|
-
*/
|
|
1124
798
|
filePath: string;
|
|
1125
799
|
}
|
|
1126
800
|
|
|
1127
|
-
/**
|
|
1128
|
-
* File System Storage Unit returned by the File System API.
|
|
1129
|
-
*/
|
|
1130
801
|
interface IStorageUnit {
|
|
1131
|
-
/**
|
|
1132
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1133
|
-
*/
|
|
1134
802
|
type: string;
|
|
1135
|
-
/**
|
|
1136
|
-
* The total capacity of the storage unit in bytes.
|
|
1137
|
-
*/
|
|
1138
803
|
capacity: number;
|
|
1139
|
-
/**
|
|
1140
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1141
|
-
*/
|
|
1142
804
|
freeSpace: number;
|
|
1143
|
-
/**
|
|
1144
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1145
|
-
*/
|
|
1146
805
|
usableSpace: number;
|
|
1147
|
-
/**
|
|
1148
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1149
|
-
*/
|
|
1150
806
|
removable: boolean;
|
|
1151
807
|
}
|
|
1152
808
|
|
|
@@ -1196,43 +852,16 @@ The `listFiles()` method lists all files and directories in the specified path (
|
|
|
1196
852
|
```ts expandable
|
|
1197
853
|
listFiles(directoryPath: IFilePath): Promise<IFilePath[]>;
|
|
1198
854
|
// show-more
|
|
1199
|
-
/**
|
|
1200
|
-
* Base File System interface for methods.
|
|
1201
|
-
*/
|
|
1202
855
|
interface IFilePath {
|
|
1203
|
-
/**
|
|
1204
|
-
* Storage unit which is selected for performing file operations.
|
|
1205
|
-
*/
|
|
1206
856
|
storageUnit: IStorageUnit;
|
|
1207
|
-
/**
|
|
1208
|
-
* File path within the storage unit.
|
|
1209
|
-
*/
|
|
1210
857
|
filePath: string;
|
|
1211
858
|
}
|
|
1212
859
|
|
|
1213
|
-
/**
|
|
1214
|
-
* File System Storage Unit returned by the File System API.
|
|
1215
|
-
*/
|
|
1216
860
|
interface IStorageUnit {
|
|
1217
|
-
/**
|
|
1218
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1219
|
-
*/
|
|
1220
861
|
type: string;
|
|
1221
|
-
/**
|
|
1222
|
-
* The total capacity of the storage unit in bytes.
|
|
1223
|
-
*/
|
|
1224
862
|
capacity: number;
|
|
1225
|
-
/**
|
|
1226
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1227
|
-
*/
|
|
1228
863
|
freeSpace: number;
|
|
1229
|
-
/**
|
|
1230
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1231
|
-
*/
|
|
1232
864
|
usableSpace: number;
|
|
1233
|
-
/**
|
|
1234
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1235
|
-
*/
|
|
1236
865
|
removable: boolean;
|
|
1237
866
|
}
|
|
1238
867
|
|
|
@@ -1280,29 +909,11 @@ A shorthand method for listing only the internal storage units (i.e., those with
|
|
|
1280
909
|
```ts expandable
|
|
1281
910
|
listInternalStorageUnits(): Promise<IStorageUnit[]>;
|
|
1282
911
|
// show-more
|
|
1283
|
-
/**
|
|
1284
|
-
* File System Storage Unit returned by the File System API.
|
|
1285
|
-
*/
|
|
1286
912
|
interface IStorageUnit {
|
|
1287
|
-
/**
|
|
1288
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1289
|
-
*/
|
|
1290
913
|
type: string;
|
|
1291
|
-
/**
|
|
1292
|
-
* The total capacity of the storage unit in bytes.
|
|
1293
|
-
*/
|
|
1294
914
|
capacity: number;
|
|
1295
|
-
/**
|
|
1296
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1297
|
-
*/
|
|
1298
915
|
freeSpace: number;
|
|
1299
|
-
/**
|
|
1300
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1301
|
-
*/
|
|
1302
916
|
usableSpace: number;
|
|
1303
|
-
/**
|
|
1304
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1305
|
-
*/
|
|
1306
917
|
removable: boolean;
|
|
1307
918
|
}
|
|
1308
919
|
|
|
@@ -1343,29 +954,11 @@ This is a mandatory method that is required for all the other File System APIs.
|
|
|
1343
954
|
```ts expandable
|
|
1344
955
|
listStorageUnits(): Promise<IStorageUnit[]>;
|
|
1345
956
|
// show-more
|
|
1346
|
-
/**
|
|
1347
|
-
* File System Storage Unit returned by the File System API.
|
|
1348
|
-
*/
|
|
1349
957
|
interface IStorageUnit {
|
|
1350
|
-
/**
|
|
1351
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1352
|
-
*/
|
|
1353
958
|
type: string;
|
|
1354
|
-
/**
|
|
1355
|
-
* The total capacity of the storage unit in bytes.
|
|
1356
|
-
*/
|
|
1357
959
|
capacity: number;
|
|
1358
|
-
/**
|
|
1359
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1360
|
-
*/
|
|
1361
960
|
freeSpace: number;
|
|
1362
|
-
/**
|
|
1363
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1364
|
-
*/
|
|
1365
961
|
usableSpace: number;
|
|
1366
|
-
/**
|
|
1367
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1368
|
-
*/
|
|
1369
962
|
removable: boolean;
|
|
1370
963
|
}
|
|
1371
964
|
|
|
@@ -1400,43 +993,16 @@ The `moveFile()` method moves a file from `sourceFilePath` to `destinationFilePa
|
|
|
1400
993
|
```ts expandable
|
|
1401
994
|
moveFile(sourceFilePath: IFilePath, destinationFilePath: IFilePath, options?: IMoveFileOptions): Promise<void>;
|
|
1402
995
|
// show-more
|
|
1403
|
-
/**
|
|
1404
|
-
* Base File System interface for methods.
|
|
1405
|
-
*/
|
|
1406
996
|
interface IFilePath {
|
|
1407
|
-
/**
|
|
1408
|
-
* Storage unit which is selected for performing file operations.
|
|
1409
|
-
*/
|
|
1410
997
|
storageUnit: IStorageUnit;
|
|
1411
|
-
/**
|
|
1412
|
-
* File path within the storage unit.
|
|
1413
|
-
*/
|
|
1414
998
|
filePath: string;
|
|
1415
999
|
}
|
|
1416
1000
|
|
|
1417
|
-
/**
|
|
1418
|
-
* File System Storage Unit returned by the File System API.
|
|
1419
|
-
*/
|
|
1420
1001
|
interface IStorageUnit {
|
|
1421
|
-
/**
|
|
1422
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1423
|
-
*/
|
|
1424
1002
|
type: string;
|
|
1425
|
-
/**
|
|
1426
|
-
* The total capacity of the storage unit in bytes.
|
|
1427
|
-
*/
|
|
1428
1003
|
capacity: number;
|
|
1429
|
-
/**
|
|
1430
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1431
|
-
*/
|
|
1432
1004
|
freeSpace: number;
|
|
1433
|
-
/**
|
|
1434
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1435
|
-
*/
|
|
1436
1005
|
usableSpace: number;
|
|
1437
|
-
/**
|
|
1438
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1439
|
-
*/
|
|
1440
1006
|
removable: boolean;
|
|
1441
1007
|
}
|
|
1442
1008
|
|
|
@@ -1514,43 +1080,16 @@ The file has to be a text file, otherwise the content will be mangled.
|
|
|
1514
1080
|
```ts expandable
|
|
1515
1081
|
readFile(filePath: IFilePath): Promise<string>;
|
|
1516
1082
|
// show-more
|
|
1517
|
-
/**
|
|
1518
|
-
* Base File System interface for methods.
|
|
1519
|
-
*/
|
|
1520
1083
|
interface IFilePath {
|
|
1521
|
-
/**
|
|
1522
|
-
* Storage unit which is selected for performing file operations.
|
|
1523
|
-
*/
|
|
1524
1084
|
storageUnit: IStorageUnit;
|
|
1525
|
-
/**
|
|
1526
|
-
* File path within the storage unit.
|
|
1527
|
-
*/
|
|
1528
1085
|
filePath: string;
|
|
1529
1086
|
}
|
|
1530
1087
|
|
|
1531
|
-
/**
|
|
1532
|
-
* File System Storage Unit returned by the File System API.
|
|
1533
|
-
*/
|
|
1534
1088
|
interface IStorageUnit {
|
|
1535
|
-
/**
|
|
1536
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1537
|
-
*/
|
|
1538
1089
|
type: string;
|
|
1539
|
-
/**
|
|
1540
|
-
* The total capacity of the storage unit in bytes.
|
|
1541
|
-
*/
|
|
1542
1090
|
capacity: number;
|
|
1543
|
-
/**
|
|
1544
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1545
|
-
*/
|
|
1546
1091
|
freeSpace: number;
|
|
1547
|
-
/**
|
|
1548
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1549
|
-
*/
|
|
1550
1092
|
usableSpace: number;
|
|
1551
|
-
/**
|
|
1552
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1553
|
-
*/
|
|
1554
1093
|
removable: boolean;
|
|
1555
1094
|
}
|
|
1556
1095
|
|
|
@@ -1645,43 +1184,16 @@ The `writeFile()` method writes string content to the file specified by `filePat
|
|
|
1645
1184
|
```ts expandable
|
|
1646
1185
|
writeFile(filePath: IFilePath, contents: string): Promise<void>;
|
|
1647
1186
|
// show-more
|
|
1648
|
-
/**
|
|
1649
|
-
* Base File System interface for methods.
|
|
1650
|
-
*/
|
|
1651
1187
|
interface IFilePath {
|
|
1652
|
-
/**
|
|
1653
|
-
* Storage unit which is selected for performing file operations.
|
|
1654
|
-
*/
|
|
1655
1188
|
storageUnit: IStorageUnit;
|
|
1656
|
-
/**
|
|
1657
|
-
* File path within the storage unit.
|
|
1658
|
-
*/
|
|
1659
1189
|
filePath: string;
|
|
1660
1190
|
}
|
|
1661
1191
|
|
|
1662
|
-
/**
|
|
1663
|
-
* File System Storage Unit returned by the File System API.
|
|
1664
|
-
*/
|
|
1665
1192
|
interface IStorageUnit {
|
|
1666
|
-
/**
|
|
1667
|
-
* The type of the storage unit, e.g., "internal" or "external".
|
|
1668
|
-
*/
|
|
1669
1193
|
type: string;
|
|
1670
|
-
/**
|
|
1671
|
-
* The total capacity of the storage unit in bytes.
|
|
1672
|
-
*/
|
|
1673
1194
|
capacity: number;
|
|
1674
|
-
/**
|
|
1675
|
-
* The amount of free space available in the storage unit in bytes.
|
|
1676
|
-
*/
|
|
1677
1195
|
freeSpace: number;
|
|
1678
|
-
/**
|
|
1679
|
-
* The amount of usable space in the storage unit in bytes.
|
|
1680
|
-
*/
|
|
1681
1196
|
usableSpace: number;
|
|
1682
|
-
/**
|
|
1683
|
-
* Indicates whether the storage unit is removable (e.g., an SD card).
|
|
1684
|
-
*/
|
|
1685
1197
|
removable: boolean;
|
|
1686
1198
|
}
|
|
1687
1199
|
|