keep edit

This commit is contained in:
edwinQQQ
2025-10-17 14:52:29 +08:00
parent 22185d799e
commit 517365879a
622 changed files with 40518 additions and 7298 deletions

View File

@@ -0,0 +1,78 @@
//
// TTPopupServiceProtocol.h
// YM_TTChatViewKit
//
// Created by lvjunhang on 2019/5/21.
// Copyright © 2023 YUMI. All rights reserved.
//
#import "TTPopupConstants.h"
typedef NS_ENUM(NSUInteger, TTPopupShowType) {
TTPopupShowType_FadeIn = 1,
TTPopupShowTypeDefault = 8,
};
@class UIView;
@protocol TTPopupServiceProtocol <NSObject>
/**
弹窗样式默认TTPopupStyleAlert
*/
@property (nonatomic, assign) TTPopupStyle style;
/**
弹窗优先级权重默认TTPopupPriorityNormal
@discussion 权重越高在弹窗队列的优先级越高,即优先弹出;相同权重按先来后到原则
*/
@property (nonatomic, assign) TTPopupPriority priority;
/**
自定义视图内容默认nil
@discussion 如果未配置,或 contentView 未继承自 UIView 及其子类,将忽略该弹窗
*/
@property (nonatomic, strong) UIView *contentView;
/**
背景蒙层透明度默认0x000000 0.3 alpha
@discussion 由于第三方原因,暂不支持蒙层颜色修改
*/
@property (nonatomic, assign) CGFloat maskBackgroundAlpha;
/**
点击蒙层是否消除弹窗默认YES
*/
@property (nonatomic, assign) BOOL shouldDismissOnBackgroundTouch;
/**
弹窗消失回调isDismissOnBackgroundTouch 区分是否点击蒙层触发
*/
@property (nonatomic, copy) void (^didFinishDismissHandler)(BOOL isDismissOnBackgroundTouch);
/**
弹窗显示成功回调
*/
@property (nonatomic, copy) void (^didFinishShowingHandler)(void);
/**
重复弹窗过滤默认NO
@discussion 设置过滤时,队列中将不会出现相同过滤标识的弹窗
过滤标识通过 #<filterIdentifier> 设置
*/
@property (nonatomic, assign) BOOL shouldFilterPopup;
/**
过滤标识默认nil
*/
@property (nonatomic, copy) NSString *filterIdentifier;
/**
显示动画类型, 默认是 default
*/
@property (nonatomic, assign) TTPopupShowType showType;
@end