1
This commit is contained in:
40
CustomKeyboard/View/Chat/KBChatAssistantCell.h
Normal file
40
CustomKeyboard/View/Chat/KBChatAssistantCell.h
Normal file
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// KBChatAssistantCell.h
|
||||
// CustomKeyboard
|
||||
//
|
||||
// AI 消息 Cell(左侧显示,带语音按钮和打字机效果)
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
@class KBChatMessage;
|
||||
@class KBChatAssistantCell;
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol KBChatAssistantCellDelegate <NSObject>
|
||||
@optional
|
||||
/// 点击语音播放按钮
|
||||
- (void)assistantCell:(KBChatAssistantCell *)cell didTapVoiceButtonForMessage:(KBChatMessage *)message;
|
||||
@end
|
||||
|
||||
@interface KBChatAssistantCell : UITableViewCell
|
||||
|
||||
@property (nonatomic, weak) id<KBChatAssistantCellDelegate> delegate;
|
||||
|
||||
- (void)configureWithMessage:(KBChatMessage *)message;
|
||||
|
||||
/// 更新语音播放状态
|
||||
- (void)updateVoicePlayingState:(BOOL)isPlaying;
|
||||
|
||||
/// 显示语音加载动画
|
||||
- (void)showVoiceLoadingAnimation;
|
||||
|
||||
/// 隐藏语音加载动画
|
||||
- (void)hideVoiceLoadingAnimation;
|
||||
|
||||
/// 停止打字机效果
|
||||
- (void)stopTypewriterEffect;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user