Autofill


Autofill API.

This interface is available to all composables via a CompositionLocal. The composable can then request or cancel autofill as required. For instance, the TextField can call requestAutofillForNode when it gains focus, and cancelAutofillForNode when it loses focus.

Summary

Public functions

Unit

Cancel a previously supplied autofill request.

Cmn
Unit

Request autofill for the specified node.

Cmn

Public functions

cancelAutofillForNode

fun cancelAutofillForNode(autofillNode: AutofillNode): Unit

Cancel a previously supplied autofill request.

Parameters
autofillNode: AutofillNode

The node that needs to be autofilled.

This function is usually called when an autofillable component loses focus.

requestAutofillForNode

fun requestAutofillForNode(autofillNode: AutofillNode): Unit

Request autofill for the specified node.

Parameters
autofillNode: AutofillNode

The node that needs to be autofilled.

This function is usually called when an autofillable component gains focus.