MDCMultilineTextInputDelegate

@protocol MDCMultilineTextInputDelegate <NSObject>

@optional

/**
 Called when the clear button is tapped.

 Return YES to set the textfield's .text to nil.
 Return NO to ignore and keep the .text.

 A direct mirror of UITextFieldDelegate's textFieldShouldClear:.

 UITextView's don't require this method already because they do not have clear buttons. The clear
 button in MDCMultilineTextField is custom.
 */
- (BOOL)multilineTextFieldShouldClear:(UIView<MDCTextInput> *)textField;

@end

Undocumented

  • Called when the clear button is tapped.

    Return YES to set the textfield’s .text to nil. Return NO to ignore and keep the .text.

    A direct mirror of UITextFieldDelegate’s textFieldShouldClear:.

    UITextView’s don’t require this method already because they do not have clear buttons. The clear button in MDCMultilineTextField is custom.

    Declaration

    Objective-C

    - (BOOL)multilineTextFieldShouldClear:(UIView<MDCTextInput> *)textField;