This commit is contained in:
2025-12-15 18:02:58 +08:00
parent 9cafb0f70e
commit 053001170a
5 changed files with 64 additions and 38 deletions

View File

@@ -0,0 +1,33 @@
//
// KBEmojiPanelView.h
// CustomKeyboard
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class KBEmojiPanelView, KBSkinTheme;
@protocol KBEmojiPanelViewDelegate <NSObject>
- (void)emojiPanelView:(KBEmojiPanelView *)panel didSelectEmoji:(NSString *)emoji;
- (void)emojiPanelViewDidRequestClose:(KBEmojiPanelView *)panel;
- (void)emojiPanelViewDidTapSearch:(KBEmojiPanelView *)panel;
@end
@interface KBEmojiPanelView : UIView
@property (nonatomic, weak) id<KBEmojiPanelViewDelegate> delegate;
/// 刷新数据(包括常用分类)。
- (void)reloadData;
/// 应用当前主题色
- (void)applyTheme:(KBSkinTheme *)theme;
/// 高亮指定分类
- (void)selectCategoryAtIndex:(NSInteger)index;
@end
NS_ASSUME_NONNULL_END