setMaxTextLength
Sets the maximum text length, or -1 for no limit.
Typically used to indicate that an editable text field has a limit on the number of characters entered.
Note: Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.
Parameters
max
The maximum text length.
See also
Throws
If called from an AccessibilityService.