説明なし

RNFetchBlobConst.m 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // RNFetchBlobConst.m
  3. // RNFetchBlob
  4. //
  5. // Created by Ben Hsieh on 2016/6/6.
  6. // Copyright © 2016 wkh237. All rights reserved.
  7. //
  8. #import "RNFetchBlobConst.h"
  9. extern NSString *const FILE_PREFIX = @"RNFetchBlob-file://";
  10. extern NSString *const ASSET_PREFIX = @"bundle-assets://";
  11. extern NSString *const AL_PREFIX = @"assets-library://";
  12. // fetch configs
  13. extern NSString *const CONFIG_USE_TEMP = @"fileCache";
  14. extern NSString *const CONFIG_FILE_PATH = @"path";
  15. extern NSString *const CONFIG_FILE_EXT = @"appendExt";
  16. extern NSString *const CONFIG_TRUSTY = @"trusty";
  17. extern NSString *const CONFIG_INDICATOR = @"indicator";
  18. extern NSString *const CONFIG_KEY = @"key";
  19. extern NSString *const CONFIG_EXTRA_BLOB_CTYPE = @"binaryContentTypes";
  20. extern NSString *const EVENT_STATE_CHANGE = @"RNFetchBlobState";
  21. extern NSString *const EVENT_SERVER_PUSH = @"RNFetchBlobServerPush";
  22. extern NSString *const EVENT_PROGRESS = @"RNFetchBlobProgress";
  23. extern NSString *const EVENT_PROGRESS_UPLOAD = @"RNFetchBlobProgress-upload";
  24. extern NSString *const EVENT_EXPIRE = @"RNFetchBlobExpire";
  25. extern NSString *const MSG_EVENT = @"RNFetchBlobMessage";
  26. extern NSString *const MSG_EVENT_LOG = @"log";
  27. extern NSString *const MSG_EVENT_WARN = @"warn";
  28. extern NSString *const MSG_EVENT_ERROR = @"error";
  29. extern NSString *const FS_EVENT_DATA = @"data";
  30. extern NSString *const FS_EVENT_END = @"end";
  31. extern NSString *const FS_EVENT_WARN = @"warn";
  32. extern NSString *const FS_EVENT_ERROR = @"error";
  33. extern NSString *const KEY_REPORT_PROGRESS = @"reportProgress";
  34. extern NSString *const KEY_REPORT_UPLOAD_PROGRESS = @"reportUploadProgress";
  35. // response type
  36. extern NSString *const RESP_TYPE_BASE64 = @"base64";
  37. extern NSString *const RESP_TYPE_UTF8 = @"utf8";
  38. extern NSString *const RESP_TYPE_PATH = @"path";