Files
keyboard/CustomKeyboard/View/KBKeyBoardMainView.h
2025-10-28 15:10:38 +08:00

31 lines
758 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// KBKeyBoardMainView.h
// CustomKeyboard
//
// Created by Mac on 2025/10/28.
//
#import <UIKit/UIKit.h>
@class KBKeyBoardMainView, KBKey;
NS_ASSUME_NONNULL_BEGIN
@protocol KBKeyBoardMainViewDelegate <NSObject>
@optional
/// 键被点击的回调
- (void)keyBoardMainView:(KBKeyBoardMainView *)keyBoardMainView didTapKey:(KBKey *)key;
/// 顶部工具栏按钮点击回调index: 0~3
/// 需求:当 index == 0 时由外部KeyboardViewController决定是否切换到功能面板
- (void)keyBoardMainView:(KBKeyBoardMainView *)keyBoardMainView didTapToolActionAtIndex:(NSInteger)index;
@end
@interface KBKeyBoardMainView : UIView
@property (nonatomic, weak) id<KBKeyBoardMainViewDelegate> delegate;
@end
NS_ASSUME_NONNULL_END