Files
keyboard/keyBoard/Class/AiTalk/V/Chat/KBChatMessageActionPopView.h

41 lines
1.1 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// KBChatMessageActionPopView.h
// keyBoard
//
// Created by Codex on 2026/2/3.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, KBChatMessageActionType) {
KBChatMessageActionTypeCopy = 0,
KBChatMessageActionTypeDelete = 1,
KBChatMessageActionTypeReport = 2,
};
@class KBChatMessageActionPopView;
@protocol KBChatMessageActionPopViewDelegate <NSObject>
@optional
- (void)chatMessageActionPopView:(KBChatMessageActionPopView *)view
didSelectAction:(KBChatMessageActionType)action;
@end
/// 聊天消息长按操作弹窗Copy / Delete / Report
@interface KBChatMessageActionPopView : UIView
@property (nonatomic, weak) id<KBChatMessageActionPopViewDelegate> delegate;
/// 是否显示 “Report” 操作(默认 YES
/// - 当长按的是右侧用户消息KBChatUserMessageCell可设置为 NO。
@property (nonatomic, assign) BOOL showsReportAction;
/// 根据是否显示 Report 计算推荐高度
+ (CGFloat)preferredHeightWithShowsReportAction:(BOOL)showsReportAction;
@end
NS_ASSUME_NONNULL_END