Function

onAutofillText

Action to autofill a TextField.

onAutofillText

Source set: Common
@Deprecated(
    message = "Use onFillData instead",
    replaceWith = ReplaceWith("onFillData"),
    level = DeprecationLevel.WARNING,
)
public fun SemanticsPropertyReceiver.onAutofillText(
    label: String? = null,
    action: ((AnnotatedString) -> Boolean)?,
): Unit

Action to autofill a TextField.

Expected to be used in conjunction with contentType and contentDataType properties.

Parameters

label Optional label for this action.
action Action to be performed when the SemanticsActions.OnAutofillText is called.
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: