@@ -76,8 +76,15 @@ KeyboardLayoutDelegate
76
76
77
77
``` swift
78
78
@objc public protocol KeyboardLayoutDelegate {
79
- optional func keyboardLayoutDidStartPressingButton (keyboardLayout : KeyboardLayout, keyboardButton : KeyboardButton)
80
- optional func keyboardLayoutDidPressButton (keyboardLayout : KeyboardLayout, keyboardButton : KeyboardButton)
79
+ // Key Press Events
80
+ optional func keyboardLayout (keyboardLayout : KeyboardLayout, didKeyPressStart keyboardButton : KeyboardButton)
81
+ optional func keyboardLayout (keyboardLayout : KeyboardLayout, didKeyPressEnd keyboardButton : KeyboardButton)
82
+ optional func keyboardLayout (keyboardLayout : KeyboardLayout, didDraggedIn fromKeyboardButton : KeyboardButton, toKeyboardButton : KeyboardButton)
83
+ // Touch Events
84
+ optional func keyboardLayout (keyboardLayout : KeyboardLayout, didTouchesBegin touches : Set <UITouch>)
85
+ optional func keyboardLayout (keyboardLayout : KeyboardLayout, didTouchesMove touches : Set <UITouch>)
86
+ optional func keyboardLayout (keyboardLayout : KeyboardLayout, didTouchesEnd touches : Set <UITouch>? )
87
+ optional func keyboardLayout (keyboardLayout : KeyboardLayout, didTouchesCancel touches : Set <UITouch>? )
81
88
}
82
89
```
83
90
@@ -253,10 +260,11 @@ CustomKeyboardDelegate
253
260
254
261
``` swift
255
262
@objc public protocol CustomKeyboardDelegate {
256
- optional func customKeyboardDidPressKeyButton (customKeyboard : CustomKeyboard, key : String )
257
- optional func customKeyboardDidPressSpaceButton (customKeyboard : CustomKeyboard)
258
- optional func customKeyboardDidPressBackspaceButton (customKeyboard : CustomKeyboard)
259
- optional func customKeyboardDidPressGlobeButton (customKeyboard : CustomKeyboard)
260
- optional func customKeyboardDidPressReturnButton (customKeyboard : CustomKeyboard)
263
+ optional func customKeyboard (customKeyboard : CustomKeyboard, keyboardButtonPressed keyboardButton : KeyboardButton)
264
+ optional func customKeyboard (customKeyboard : CustomKeyboard, keyButtonPressed key : String )
265
+ optional func customKeyboardSpaceButtonPressed (customKeyboard : CustomKeyboard)
266
+ optional func customKeyboardBackspaceButtonPressed (customKeyboard : CustomKeyboard)
267
+ optional func customKeyboardGlobeButtonPressed (customKeyboard : CustomKeyboard)
268
+ optional func customKeyboardReturnButtonPressed (customKeyboard : CustomKeyboard)
261
269
}
262
270
```
0 commit comments