28 lines
626 B
Objective-C
28 lines
626 B
Objective-C
//
|
|
// 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
|