RCTConvert+RNPermission.h 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #import <React/RCTConvert.h>
  2. typedef NS_ENUM(NSInteger, RNPermission) {
  3. RNPermissionUnknown = 0,
  4. #if __has_include("RNPermissionHandlerBluetoothPeripheral.h")
  5. RNPermissionBluetoothPeripheral,
  6. #endif
  7. #if __has_include("RNPermissionHandlerCalendars.h")
  8. RNPermissionCalendars,
  9. #endif
  10. #if __has_include("RNPermissionHandlerCamera.h")
  11. RNPermissionCamera,
  12. #endif
  13. #if __has_include("RNPermissionHandlerContacts.h")
  14. RNPermissionContacts,
  15. #endif
  16. #if __has_include("RNPermissionHandlerFaceID.h")
  17. RNPermissionFaceID,
  18. #endif
  19. #if __has_include("RNPermissionHandlerLocationAlways.h")
  20. RNPermissionLocationAlways,
  21. #endif
  22. #if __has_include("RNPermissionHandlerLocationWhenInUse.h")
  23. RNPermissionLocationWhenInUse,
  24. #endif
  25. #if __has_include("RNPermissionHandlerMediaLibrary.h")
  26. RNPermissionMediaLibrary,
  27. #endif
  28. #if __has_include("RNPermissionHandlerMicrophone.h")
  29. RNPermissionMicrophone,
  30. #endif
  31. #if __has_include("RNPermissionHandlerMotion.h")
  32. RNPermissionMotion,
  33. #endif
  34. #if __has_include("RNPermissionHandlerNotifications.h")
  35. RNPermissionNotifications,
  36. #endif
  37. #if __has_include("RNPermissionHandlerPhotoLibrary.h")
  38. RNPermissionPhotoLibrary,
  39. #endif
  40. #if __has_include("RNPermissionHandlerReminders.h")
  41. RNPermissionReminders,
  42. #endif
  43. #if __has_include("RNPermissionHandlerSiri.h")
  44. RNPermissionSiri,
  45. #endif
  46. #if __has_include("RNPermissionHandlerSpeechRecognition.h")
  47. RNPermissionSpeechRecognition,
  48. #endif
  49. #if __has_include("RNPermissionHandlerStoreKit.h")
  50. RNPermissionStoreKit,
  51. #endif
  52. };
  53. @interface RCTConvert (RNPermission)
  54. @end