1*6b7802baSBartosz Kaszubowski/**
2*6b7802baSBartosz Kaszubowski * These values can be used to define how sessions work on iOS.
3*6b7802baSBartosz Kaszubowski * @platform ios
4*6b7802baSBartosz Kaszubowski */
5da65a760SŁukasz Kosmatyexport var FileSystemSessionType;
6da65a760SŁukasz Kosmaty(function (FileSystemSessionType) {
7*6b7802baSBartosz Kaszubowski    /**
8da65a760SŁukasz Kosmaty     * Using this mode means that the downloading/uploading session on the native side will work even if the application is moved to background.
9da65a760SŁukasz Kosmaty     * 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*6b7802baSBartosz Kaszubowski     * > 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.
11da65a760SŁukasz Kosmaty     */
12da65a760SŁukasz Kosmaty    FileSystemSessionType[FileSystemSessionType["BACKGROUND"] = 0] = "BACKGROUND";
13*6b7802baSBartosz Kaszubowski    /**
14da65a760SŁukasz Kosmaty     * 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).
15da65a760SŁukasz Kosmaty     * Bringing the application to foreground again would trigger Promise rejection.
16da65a760SŁukasz Kosmaty     */
17da65a760SŁukasz Kosmaty    FileSystemSessionType[FileSystemSessionType["FOREGROUND"] = 1] = "FOREGROUND";
18da65a760SŁukasz Kosmaty})(FileSystemSessionType || (FileSystemSessionType = {}));
1937630a92SŁukasz Kosmatyexport var FileSystemUploadType;
2037630a92SŁukasz Kosmaty(function (FileSystemUploadType) {
21*6b7802baSBartosz Kaszubowski    /**
22*6b7802baSBartosz Kaszubowski     * The file will be sent as a request's body. The request can't contain additional data.
23*6b7802baSBartosz Kaszubowski     */
2437630a92SŁukasz Kosmaty    FileSystemUploadType[FileSystemUploadType["BINARY_CONTENT"] = 0] = "BINARY_CONTENT";
25*6b7802baSBartosz Kaszubowski    /**
26*6b7802baSBartosz Kaszubowski     * An [RFC 2387-compliant](https://www.ietf.org/rfc/rfc2387.txt) request body. The provided file will be encoded into HTTP request.
27*6b7802baSBartosz Kaszubowski     * This request can contain additional data represented by [`UploadOptionsMultipart`](#uploadoptionsmultipart) type.
28*6b7802baSBartosz Kaszubowski     */
2937630a92SŁukasz Kosmaty    FileSystemUploadType[FileSystemUploadType["MULTIPART"] = 1] = "MULTIPART";
3037630a92SŁukasz Kosmaty})(FileSystemUploadType || (FileSystemUploadType = {}));
31*6b7802baSBartosz Kaszubowski/* eslint-enable */
32*6b7802baSBartosz Kaszubowski/**
33*6b7802baSBartosz Kaszubowski * These values can be used to define how file system data is read / written.
34*6b7802baSBartosz Kaszubowski */
352307aaceSEvan Baconexport var EncodingType;
362307aaceSEvan Bacon(function (EncodingType) {
37*6b7802baSBartosz Kaszubowski    /**
38*6b7802baSBartosz Kaszubowski     * Standard encoding format.
39*6b7802baSBartosz Kaszubowski     */
402307aaceSEvan Bacon    EncodingType["UTF8"] = "utf8";
41*6b7802baSBartosz Kaszubowski    /**
42*6b7802baSBartosz Kaszubowski     * Binary, radix-64 representation.
43*6b7802baSBartosz Kaszubowski     */
442307aaceSEvan Bacon    EncodingType["Base64"] = "base64";
452307aaceSEvan Bacon})(EncodingType || (EncodingType = {}));
46*6b7802baSBartosz Kaszubowski/* eslint-enable */
472307aaceSEvan Bacon//# sourceMappingURL=FileSystem.types.js.map