123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // RNFetchBlobConst.m
- // RNFetchBlob
- //
- // Created by Ben Hsieh on 2016/6/6.
- // Copyright © 2016 wkh237. All rights reserved.
- //
- #import "RNFetchBlobConst.h"
-
- NSString *const FILE_PREFIX = @"RNFetchBlob-file://";
- NSString *const ASSET_PREFIX = @"bundle-assets://";
- NSString *const AL_PREFIX = @"assets-library://";
-
- // fetch configs
- NSString *const CONFIG_USE_TEMP = @"fileCache";
- NSString *const CONFIG_FILE_PATH = @"path";
- NSString *const CONFIG_FILE_EXT = @"appendExt";
- NSString *const CONFIG_TRUSTY = @"trusty";
- NSString *const CONFIG_INDICATOR = @"indicator";
- NSString *const CONFIG_KEY = @"key";
- NSString *const CONFIG_EXTRA_BLOB_CTYPE = @"binaryContentTypes";
-
- NSString *const EVENT_STATE_CHANGE = @"RNFetchBlobState";
- NSString *const EVENT_SERVER_PUSH = @"RNFetchBlobServerPush";
- NSString *const EVENT_PROGRESS = @"RNFetchBlobProgress";
- NSString *const EVENT_PROGRESS_UPLOAD = @"RNFetchBlobProgress-upload";
- NSString *const EVENT_EXPIRE = @"RNFetchBlobExpire";
-
- NSString *const MSG_EVENT = @"RNFetchBlobMessage";
- NSString *const MSG_EVENT_LOG = @"log";
- NSString *const MSG_EVENT_WARN = @"warn";
- NSString *const MSG_EVENT_ERROR = @"error";
- NSString *const FS_EVENT_DATA = @"data";
- NSString *const FS_EVENT_END = @"end";
- NSString *const FS_EVENT_WARN = @"warn";
- NSString *const FS_EVENT_ERROR = @"error";
-
- NSString *const KEY_REPORT_PROGRESS = @"reportProgress";
- NSString *const KEY_REPORT_UPLOAD_PROGRESS = @"reportUploadProgress";
-
- // response type
- NSString *const RESP_TYPE_BASE64 = @"base64";
- NSString *const RESP_TYPE_UTF8 = @"utf8";
- NSString *const RESP_TYPE_PATH = @"path";
|