// // RQAlertViewManager.h // SDJK // // Created by 张嵘 on 2021/8/17. // #import #define RQ_ALERTVIEW_MANAGER [RQAlertViewManager sharedInstance] NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSUInteger, RQAlertType) { /// 默认 RQAlertType_Default = 0, /// 正确 RQAlertType_Rignt = 1, /// 错误 RQAlertType_Error = 2, /// 提示 RQAlertType_Warn = 3, /// 注销账号 RQAlertType_SignOut = 4, /// 激励广告 RQAlertType_AD = 5, }; @interface RQAlertViewManager : NSObject @singleton(RQAlertViewManager); - (void)rq_showOfficialInterpretationAlertWithMessage:(NSString *)messageStr mp3Url:(NSString *)mp3Url; - (void)rq_showSkillExplanationAlertWithMessage:(NSString *)messageStr skillkeyword:(NSString *)skillkeyword explainGifUrl:(NSString *)explainGifUrl mp3Url:(NSString *)mp3Url completeBlock:(void(^__nullable)(void))completeBlock; - (void)rq_ActivateVIPAlertWithComplete:(VoidBlock_Bool)complete; /** 弹出alertController,并且有两个个action按钮,分别有处理事件 @param alertType 弹窗类型 @param title title @param message Message @param confirmTitle 左边按钮的title @param cancelTitle 右边按钮的title @param confirmAction 左边按钮的点击事件 @param cancelAction 右按钮的点击事件 */ - (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; @end NS_ASSUME_NONNULL_END