KeyboardHelperDelegate
public protocol KeyboardHelperDelegate : AnyObject
KeyboardHelperDelegate is used to perform an action notified by KeyboardHelper.
Version
1.5.0Date
18/08/2019-
The last input view has returned.
Declaration
Swift
func keyboardHelperDidConfirmInput(_ keyboardHelper: KeyboardHelper) -
keyboardHelper(_:Default implementationdidChangeContentOf: ) The content has been changed.
Default Implementation
Declaration
Swift
func keyboardHelper(_ keyboardHelper: KeyboardHelper, didChangeContentOf view: UIView)Parameters
viewThe view whose content has been changed.
-
keyboardHelper(_:Default implementationshouldChangeContentOf: toContent: ) Whether the content should be changed or not. It is mainly used to validate the new content.
Default Implementation
Declaration
Swift
func keyboardHelper(_ keyboardHelper: KeyboardHelper, shouldChangeContentOf view: UIView, toContent content: String) -> BoolParameters
viewThe view whose content will be changed.
contentThe new content that is going to be applied.
Return Value
Whether the content should be changed or not.
-
keyboardHelper(_:Default implementationwillEditOn: ) A input view will start editing mode.
Default Implementation
Declaration
Swift
func keyboardHelper(_ keyboardHelper: KeyboardHelper, willEditOn view: UIView)Parameters
viewThe view whose content will be changed.
-
keyboardHelper(_:Default implementationdidEditOn: ) A input view finished enditing mode.
Default Implementation
Declaration
Swift
func keyboardHelper(_ keyboardHelper: KeyboardHelper, didEditOn view: UIView)Parameters
viewThe view whose content will be changed.
KeyboardHelperDelegate Protocol Reference