UNPKG

1.46 kBJavaScriptView Raw
1export var FileSystemSessionType;
2(function (FileSystemSessionType) {
3 /*
4 * Using this mode means that the downloading/uploading session on the native side will work even if the application is moved to background.
5 *
6 * If the task completes while the application is in background, the Promise will be either resolved immediately or (if the application execution has already been stopped) once the app is moved to foreground again.
7 */
8 FileSystemSessionType[FileSystemSessionType["BACKGROUND"] = 0] = "BACKGROUND";
9 /*
10 * Using this mode means that downloading/uploading session on the native side will be terminated once the application becomes inactive (e.g. when it goes to background).
11 * Bringing the application to foreground again would trigger Promise rejection.
12 */
13 FileSystemSessionType[FileSystemSessionType["FOREGROUND"] = 1] = "FOREGROUND";
14})(FileSystemSessionType || (FileSystemSessionType = {}));
15export var FileSystemUploadType;
16(function (FileSystemUploadType) {
17 FileSystemUploadType[FileSystemUploadType["BINARY_CONTENT"] = 0] = "BINARY_CONTENT";
18 FileSystemUploadType[FileSystemUploadType["MULTIPART"] = 1] = "MULTIPART";
19})(FileSystemUploadType || (FileSystemUploadType = {}));
20export var EncodingType;
21(function (EncodingType) {
22 EncodingType["UTF8"] = "utf8";
23 EncodingType["Base64"] = "base64";
24})(EncodingType || (EncodingType = {}));
25//# sourceMappingURL=FileSystem.types.js.map
\No newline at end of file