Files
real-e-party-iOS/YuMi/CustomUI/TTPopup/TTPopup.h
2025-10-17 14:52:29 +08:00

79 lines
1.8 KiB
Objective-C

// Created by lvjunhang on 2019/5/22.
// Copyright © 2023 YUMI. All rights reserved.
#import <Foundation/Foundation.h>
#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<TTActionSheetConfig *> *)items;
+ (void)actionSheetWithItems:(NSArray<TTActionSheetConfig *> *)items
showCancelItem:(BOOL)showCancelItem;
+ (void)actionSheetWithItems:(NSArray<TTActionSheetConfig *> *)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