RCTConvert+RNPStatus.h 825B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // RCTConvert+RNPStatus
  3. // ReactNativePermissions
  4. //
  5. // Created by Yonah Forst on 23/03/16.
  6. // Copyright © 2016 Yonah Forst. All rights reserved.
  7. //
  8. #if __has_include("RCTConvert.h")
  9. #import "RCTConvert.h"
  10. #else
  11. #import <React/RCTConvert.h>
  12. #endif
  13. static NSString* RNPStatusUndetermined = @"undetermined";
  14. static NSString* RNPStatusDenied = @"denied";
  15. static NSString* RNPStatusAuthorized = @"authorized";
  16. static NSString* RNPStatusRestricted = @"restricted";
  17. typedef NS_ENUM(NSInteger, RNPType) {
  18. RNPTypeUnknown,
  19. RNPTypeLocation,
  20. RNPTypeCamera,
  21. RNPTypeMicrophone,
  22. RNPTypePhoto,
  23. RNPTypeContacts,
  24. RNPTypeEvent,
  25. RNPTypeReminder,
  26. RNPTypeBluetooth,
  27. RNPTypeNotification,
  28. RNPTypeBackgroundRefresh,
  29. RNPTypeSpeechRecognition
  30. };
  31. @interface RCTConvert (RNPStatus)
  32. @end