Interface UITextFieldDelegate

    • Method Detail

      • textFieldShouldChangeCharactersInRangeReplacementString

        default boolean textFieldShouldChangeCharactersInRangeReplacementString​(UITextField textField,
                                                                                NSRange range,
                                                                                java.lang.String string)
        return NO to not change text
      • textFieldDidBeginEditing

        default void textFieldDidBeginEditing​(UITextField textField)
        became first responder
      • textFieldDidEndEditing

        default void textFieldDidEndEditing​(UITextField textField)
        may be called if forced even if shouldEndEditing returns NO (e.g. view removed from window) or endEditing:YES called
      • textFieldDidEndEditingReason

        default void textFieldDidEndEditingReason​(UITextField textField,
                                                  long reason)
        if implemented, called in place of textFieldDidEndEditing:
      • textFieldShouldBeginEditing

        default boolean textFieldShouldBeginEditing​(UITextField textField)
        return NO to disallow editing.
      • textFieldShouldClear

        default boolean textFieldShouldClear​(UITextField textField)
        called when clear button pressed. return NO to ignore (no notifications)
      • textFieldShouldEndEditing

        default boolean textFieldShouldEndEditing​(UITextField textField)
        return YES to allow editing to stop and to resign first responder status. NO to disallow the editing session to end
      • textFieldShouldReturn

        default boolean textFieldShouldReturn​(UITextField textField)
        called when 'return' key pressed. return NO to ignore.
      • textFieldDidChangeSelection

        default void textFieldDidChangeSelection​(UITextField textField)