Property

maxTextLength

Limits the number of characters that can be entered, e.g.

Source set: Common
public var SemanticsPropertyReceiver.maxTextLength: Int by SemanticsProperties.MaxTextLength

Limits the number of characters that can be entered, e.g. in an editable text field. By default this value is -1, signifying there is no maximum text length limit.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: