RQAlertViewManager.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // RQAlertViewManager.h
  3. // SDJK
  4. //
  5. // Created by 张嵘 on 2021/8/17.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #define RQ_ALERTVIEW_MANAGER [RQAlertViewManager sharedInstance]
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NS_ENUM(NSUInteger, RQAlertType) {
  11. /// 默认
  12. RQAlertType_Default = 0,
  13. /// 正确
  14. RQAlertType_Rignt = 1,
  15. /// 错误
  16. RQAlertType_Error = 2,
  17. /// 提示
  18. RQAlertType_Warn = 3,
  19. /// 注销账号
  20. RQAlertType_SignOut = 4,
  21. /// 激励广告
  22. RQAlertType_AD = 5,
  23. };
  24. @interface RQAlertViewManager : NSObject
  25. @singleton(RQAlertViewManager);
  26. - (void)rq_showOfficialInterpretationAlertWithMessage:(NSString *)messageStr mp3Url:(NSString *)mp3Url;
  27. - (void)rq_showSkillExplanationAlertWithMessage:(NSString *)messageStr skillkeyword:(NSString *)skillkeyword explainGifUrl:(NSString *)explainGifUrl mp3Url:(NSString *)mp3Url completeBlock:(void(^__nullable)(void))completeBlock;
  28. - (void)rq_ActivateVIPAlertWithComplete:(VoidBlock_Bool)complete;
  29. /**
  30. 弹出alertController,并且有两个个action按钮,分别有处理事件
  31. @param alertType 弹窗类型
  32. @param title title
  33. @param message Message
  34. @param confirmTitle 左边按钮的title
  35. @param cancelTitle 右边按钮的title
  36. @param confirmAction 左边按钮的点击事件
  37. @param cancelAction 右按钮的点击事件
  38. */
  39. - (void)showAlertWithAlertType:(RQAlertType)alertType title:(NSString * _Nullable )title message:(NSString * _Nullable )message confirmTitle:(NSString *)confirmTitle cancelTitle:(NSString * _Nullable )cancelTitle confirmAction:(void (^__nullable)(__kindof QMUIDialogViewController *dialogViewController))confirmAction cancelAction:(void (^__nullable)(__kindof QMUIDialogViewController *dialogViewController))cancelAction;
  40. @end
  41. NS_ASSUME_NONNULL_END