No Description

RNFetchBlobConst.m 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. NSString *const FILE_PREFIX = @"RNFetchBlob-file://";
  10. NSString *const ASSET_PREFIX = @"bundle-assets://";
  11. NSString *const AL_PREFIX = @"assets-library://";
  12. // fetch configs
  13. NSString *const CONFIG_USE_TEMP = @"fileCache";
  14. NSString *const CONFIG_FILE_PATH = @"path";
  15. NSString *const CONFIG_FILE_EXT = @"appendExt";
  16. NSString *const CONFIG_TRUSTY = @"trusty";
  17. NSString *const CONFIG_WIFI_ONLY = @"wifiOnly";
  18. NSString *const CONFIG_INDICATOR = @"indicator";
  19. NSString *const CONFIG_KEY = @"key";
  20. NSString *const CONFIG_EXTRA_BLOB_CTYPE = @"binaryContentTypes";
  21. NSString *const EVENT_STATE_CHANGE = @"RNFetchBlobState";
  22. NSString *const EVENT_SERVER_PUSH = @"RNFetchBlobServerPush";
  23. NSString *const EVENT_PROGRESS = @"RNFetchBlobProgress";
  24. NSString *const EVENT_PROGRESS_UPLOAD = @"RNFetchBlobProgress-upload";
  25. NSString *const EVENT_EXPIRE = @"RNFetchBlobExpire";
  26. NSString *const MSG_EVENT = @"RNFetchBlobMessage";
  27. NSString *const MSG_EVENT_LOG = @"log";
  28. NSString *const MSG_EVENT_WARN = @"warn";
  29. NSString *const MSG_EVENT_ERROR = @"error";
  30. NSString *const FS_EVENT_DATA = @"data";
  31. NSString *const FS_EVENT_END = @"end";
  32. NSString *const FS_EVENT_WARN = @"warn";
  33. NSString *const FS_EVENT_ERROR = @"error";
  34. NSString *const KEY_REPORT_PROGRESS = @"reportProgress";
  35. NSString *const KEY_REPORT_UPLOAD_PROGRESS = @"reportUploadProgress";
  36. // response type
  37. NSString *const RESP_TYPE_BASE64 = @"base64";
  38. NSString *const RESP_TYPE_UTF8 = @"utf8";
  39. NSString *const RESP_TYPE_PATH = @"path";