TUIUserAuthorizationCenter.h 839 B

12345678910111213141516171819202122232425
  1. //
  2. // TUIUserAuthorizationCenter.h
  3. // TUIChat
  4. //
  5. // Created by wyl on 2022/2/16.
  6. // Copyright © 2023 Tencent. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef NS_OPTIONS(NSUInteger, TUIChatAuthControlType) {
  10. TUIChatAuthControlTypeMicro = 1 << 0,
  11. TUIChatAuthControlTypeCamera = 1 << 1,
  12. TUIChatAuthControlTypePhoto = 1 << 2,
  13. };
  14. @interface TUIUserAuthorizationCenter : NSObject
  15. @property(nonatomic, assign, class, readonly) BOOL isEnableCameraAuthorization;
  16. @property(nonatomic, assign, class, readonly) BOOL isEnableMicroAuthorization;
  17. + (void)cameraStateActionWithPopCompletion:(void (^)(void))completion API_AVAILABLE(ios(8.0));
  18. + (void)microStateActionWithPopCompletion:(void (^)(void))completion API_AVAILABLE(ios(8.0));
  19. + (void)openSettingPage;
  20. + (void)showAlert:(TUIChatAuthControlType)type;
  21. @end