MDCMultilineTextInputLayoutDelegate

@protocol MDCMultilineTextInputLayoutDelegate <NSObject>

Delegate for MDCTextInput size changes.

  • Notifies the delegate that the text field’s content size changed, requiring the size provided for best display.

    If using auto layout, this method is unnecessary; this is a way for views not implementing auto layout to know when to grow and shrink height to accomodate changes in content.

    Declaration

    Objective-C

    - (void)multilineTextField:
                (id<MDCMultilineTextInput> _Nonnull)multilineTextField
          didChangeContentSize:(CGSize)size;

    Parameters

    multilineTextField

    The text field for which the content size changed.

    size

    The size required by the text view to fit all of its content.