// Created by lvjunhang on 2019/5/22. // Copyright © 2023 YUMI. All rights reserved. #import #import "TTPopupConstants.h" #import "TTAlertConfig.h" #import "TTActionSheetConfig.h" #import "TTPopupService.h" NS_ASSUME_NONNULL_BEGIN @class UIView; @interface TTPopup : NSObject #pragma mark Alert + (void)alertWithMessage:(NSString *)message confirmHandler:(TTPopupCompletionHandler)confirmHandler cancelHandler:(TTPopupCompletionHandler)cancelHandler; + (void)alertWithConfig:(TTAlertConfig *)config showBorder:(BOOL)isShowBorder confirmHandler:(TTPopupCompletionHandler)confirmHandler cancelHandler:(TTPopupCompletionHandler)cancelHandler; + (void)alertWithMessage:(NSString *)message config:(TTAlertConfig *)config showBorder:(BOOL)isShowBorder cancelHandler:(TTPopupCompletionHandler)cancelHandler confirmHandler:(TTPopupCompletionHandler)confirmHandler; + (void)alertWithConfig:(TTAlertConfig *)config confirmHandler:(TTPopupCompletionHandler)confirmHandler cancelHandler:(TTPopupCompletionHandler)cancelHandler; #pragma mark Action Sheet + (void)actionSheetWithItems:(NSArray *)items; + (void)actionSheetWithItems:(NSArray *)items showCancelItem:(BOOL)showCancelItem; + (void)actionSheetWithItems:(NSArray *)items cancelHandler:(TTActionSheetClickAction)cancelHandler; #pragma mark Popup + (void)popupView:(UIView *)customView style:(TTPopupStyle)style; + (void)popupWithConfig:(TTPopupService *)config; #pragma mark Dismiss + (void)dismiss; #pragma mark Query + (BOOL)hasShowPopup; @end NS_ASSUME_NONNULL_END