34 lines
861 B
Objective-C
34 lines
861 B
Objective-C
//
|
|
// KBKeyboardRowBuilder.h
|
|
// CustomKeyboard
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class KBKeyboardLayoutConfig;
|
|
@class KBKeyboardLayoutEngine;
|
|
@class KBKeyboardKeyFactory;
|
|
@class KBKeyboardRowConfig;
|
|
@class KBBackspaceLongPressHandler;
|
|
@class UIView;
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface KBKeyboardRowBuilder : NSObject
|
|
|
|
- (instancetype)initWithLayoutConfig:(KBKeyboardLayoutConfig *)layoutConfig
|
|
layoutEngine:(KBKeyboardLayoutEngine *)layoutEngine
|
|
keyFactory:(KBKeyboardKeyFactory *)keyFactory;
|
|
|
|
- (void)buildRow:(UIView *)row
|
|
withRowConfig:(KBKeyboardRowConfig *)rowConfig
|
|
uniformCharWidth:(CGFloat)uniformCharWidth
|
|
shiftOn:(BOOL)shiftOn
|
|
backspaceHandler:(KBBackspaceLongPressHandler *)backspaceHandler
|
|
target:(id)target
|
|
action:(SEL)action;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|