Files
keyboard/CustomKeyboard/View/KBChatPanelView.h

28 lines
626 B
C
Raw Normal View History

2026-01-15 18:16:56 +08:00
//
// KBChatPanelView.h
// CustomKeyboard
//
#import <UIKit/UIKit.h>
@class KBChatPanelView, KBChatMessage;
NS_ASSUME_NONNULL_BEGIN
@protocol KBChatPanelViewDelegate <NSObject>
@optional
- (void)chatPanelView:(KBChatPanelView *)view didSendText:(NSString *)text;
- (void)chatPanelView:(KBChatPanelView *)view didTapMessage:(KBChatMessage *)message;
@end
@interface KBChatPanelView : UIView
@property (nonatomic, weak) id<KBChatPanelViewDelegate> delegate;
@property (nonatomic, strong, readonly) UITableView *tableView;
- (void)kb_reloadWithMessages:(NSArray<KBChatMessage *> *)messages;
@end
NS_ASSUME_NONNULL_END