Files
keyboard/CustomKeyboard/View/KBKeyboardView/KBKeyboardInteractionHandler.h
2026-03-04 12:54:57 +08:00

29 lines
682 B
Objective-C

//
// KBKeyboardInteractionHandler.h
// CustomKeyboard
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class KBKeyButton;
NS_ASSUME_NONNULL_BEGIN
@interface KBKeyboardInteractionHandler : NSObject
- (UIView *)resolveHitView:(UIView *)hitView
point:(CGPoint)point
container:(UIView *)container
rowViews:(NSArray<UIView *> *)rowViews;
- (NSArray<KBKeyButton *> *)collectKeyButtonsInView:(UIView *)view;
- (void)showPreviewForButton:(KBKeyButton *)button inContainer:(UIView *)container;
- (void)hidePreview;
- (void)bringPreviewToFrontIfNeededInContainer:(UIView *)container;
@end
NS_ASSUME_NONNULL_END