No Description

RNFetchBlobConst.m 1.6KB

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. 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_INDICATOR = @"indicator";
  18. NSString *const CONFIG_KEY = @"key";
  19. NSString *const CONFIG_EXTRA_BLOB_CTYPE = @"binaryContentTypes";
  20. NSString *const EVENT_STATE_CHANGE = @"RNFetchBlobState";
  21. NSString *const EVENT_SERVER_PUSH = @"RNFetchBlobServerPush";
  22. NSString *const EVENT_PROGRESS = @"RNFetchBlobProgress";
  23. NSString *const EVENT_PROGRESS_UPLOAD = @"RNFetchBlobProgress-upload";
  24. NSString *const EVENT_EXPIRE = @"RNFetchBlobExpire";
  25. NSString *const MSG_EVENT = @"RNFetchBlobMessage";
  26. NSString *const MSG_EVENT_LOG = @"log";
  27. NSString *const MSG_EVENT_WARN = @"warn";
  28. NSString *const MSG_EVENT_ERROR = @"error";
  29. NSString *const FS_EVENT_DATA = @"data";
  30. NSString *const FS_EVENT_END = @"end";
  31. NSString *const FS_EVENT_WARN = @"warn";
  32. NSString *const FS_EVENT_ERROR = @"error";
  33. NSString *const KEY_REPORT_PROGRESS = @"reportProgress";
  34. NSString *const KEY_REPORT_UPLOAD_PROGRESS = @"reportUploadProgress";
  35. // response type
  36. NSString *const RESP_TYPE_BASE64 = @"base64";
  37. NSString *const RESP_TYPE_UTF8 = @"utf8";
  38. NSString *const RESP_TYPE_PATH = @"path";