setMaxLength

open fun setMaxLength(@IntRange(from = 0) maxLength: Int): TextFormConfiguration.Builder

Sets the maximum length of text allowed in the text field.

Parameters

maxLength

Maximum length of text allowed or 0 if length is unlimited.