getMaxLength

open fun getMaxLength(): Int

Maximum length of text allowed in the text field.

Return

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