2026-01-15 18:16:56 +08:00
|
|
|
//
|
|
|
|
|
// KBChatMessageCell.h
|
|
|
|
|
// CustomKeyboard
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
@class KBChatMessage;
|
2026-01-30 13:17:11 +08:00
|
|
|
@class KBChatMessageCell;
|
2026-01-15 18:16:56 +08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
2026-01-30 13:17:11 +08:00
|
|
|
@protocol KBChatMessageCellDelegate <NSObject>
|
|
|
|
|
@optional
|
|
|
|
|
/// 点击语音播放按钮
|
|
|
|
|
- (void)chatMessageCell:(KBChatMessageCell *)cell didTapVoiceButtonForMessage:(KBChatMessage *)message;
|
|
|
|
|
@end
|
|
|
|
|
|
2026-01-15 18:16:56 +08:00
|
|
|
@interface KBChatMessageCell : UITableViewCell
|
|
|
|
|
|
2026-01-30 13:17:11 +08:00
|
|
|
@property (nonatomic, weak) id<KBChatMessageCellDelegate> delegate;
|
|
|
|
|
|
2026-01-15 18:16:56 +08:00
|
|
|
- (void)kb_configureWithMessage:(KBChatMessage *)message;
|
|
|
|
|
|
2026-01-30 13:17:11 +08:00
|
|
|
/// 更新语音播放状态
|
|
|
|
|
- (void)kb_updateVoicePlayingState:(BOOL)isPlaying;
|
|
|
|
|
|
|
|
|
|
/// 显示语音加载动画
|
|
|
|
|
- (void)kb_showVoiceLoadingAnimation;
|
|
|
|
|
|
|
|
|
|
/// 隐藏语音加载动画
|
|
|
|
|
- (void)kb_hideVoiceLoadingAnimation;
|
|
|
|
|
|
|
|
|
|
/// 停止打字机效果
|
|
|
|
|
- (void)kb_stopTypewriterEffect;
|
|
|
|
|
|
2026-01-15 18:16:56 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|