KeyboardHelperDelegate

public protocol KeyboardHelperDelegate : AnyObject

KeyboardHelperDelegate is used to perform an action notified by KeyboardHelper.

Author

Adamas

Version

1.5.0

Date

18/08/2019
  • The last input view has returned.

    Declaration

    Swift

    func keyboardHelperDidConfirmInput(_ keyboardHelper: KeyboardHelper)
  • keyboardHelper(_:didChangeContentOf:) Default implementation

    The content has been changed.

    Default Implementation

    Declaration

    Swift

    func keyboardHelper(_ keyboardHelper: KeyboardHelper,
                        didChangeContentOf view: UIView)

    Parameters

    view

    The view whose content has been changed.

  • 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) -> Bool

    Parameters

    view

    The view whose content will be changed.

    content

    The new content that is going to be applied.

    Return Value

    Whether the content should be changed or not.

  • keyboardHelper(_:willEditOn:) Default implementation

    A input view will start editing mode.

    Default Implementation

    Declaration

    Swift

    func keyboardHelper(_ keyboardHelper: KeyboardHelper,
                        willEditOn view: UIView)

    Parameters

    view

    The view whose content will be changed.

  • keyboardHelper(_:didEditOn:) Default implementation

    A input view finished enditing mode.

    Default Implementation

    Declaration

    Swift

    func keyboardHelper(_ keyboardHelper: KeyboardHelper,
                        didEditOn view: UIView)

    Parameters

    view

    The view whose content will be changed.