1/** 2 * These values can be used to define how sessions work on iOS. 3 * @platform ios 4 */ 5export var FileSystemSessionType; 6(function (FileSystemSessionType) { 7 /** 8 * Using this mode means that the downloading/uploading session on the native side will work even if the application is moved to background. 9 * 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. 10 * > Note: The background session doesn't fail if the server or your connection is down. Rather, it continues retrying until the task succeeds or is canceled manually. 11 */ 12 FileSystemSessionType[FileSystemSessionType["BACKGROUND"] = 0] = "BACKGROUND"; 13 /** 14 * 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). 15 * Bringing the application to foreground again would trigger Promise rejection. 16 */ 17 FileSystemSessionType[FileSystemSessionType["FOREGROUND"] = 1] = "FOREGROUND"; 18})(FileSystemSessionType || (FileSystemSessionType = {})); 19export var FileSystemUploadType; 20(function (FileSystemUploadType) { 21 /** 22 * The file will be sent as a request's body. The request can't contain additional data. 23 */ 24 FileSystemUploadType[FileSystemUploadType["BINARY_CONTENT"] = 0] = "BINARY_CONTENT"; 25 /** 26 * An [RFC 2387-compliant](https://www.ietf.org/rfc/rfc2387.txt) request body. The provided file will be encoded into HTTP request. 27 * This request can contain additional data represented by [`UploadOptionsMultipart`](#uploadoptionsmultipart) type. 28 */ 29 FileSystemUploadType[FileSystemUploadType["MULTIPART"] = 1] = "MULTIPART"; 30})(FileSystemUploadType || (FileSystemUploadType = {})); 31/* eslint-enable */ 32/** 33 * These values can be used to define how file system data is read / written. 34 */ 35export var EncodingType; 36(function (EncodingType) { 37 /** 38 * Standard encoding format. 39 */ 40 EncodingType["UTF8"] = "utf8"; 41 /** 42 * Binary, radix-64 representation. 43 */ 44 EncodingType["Base64"] = "base64"; 45})(EncodingType || (EncodingType = {})); 46/* eslint-enable */ 47//# sourceMappingURL=FileSystem.types.js.map