TextInputLayout.LengthCounter

public static interface TextInputLayout.LengthCounter

com.google.android.material.textfield.TextInputLayout.LengthCounter


Interface definition for a length counter.

Summary

Public methods

abstract int countLength(Editable text)

Counts the length of the text and returns it.

Public methods

countLength

public abstract int countLength (Editable text)

Counts the length of the text and returns it.

Parameters
text Editable: The text to count the length for.

Returns
int The count that the counter should be updated with.