Autofill
-
Cmn
interface 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 |
This function is deprecated. You no longer have to call these apis when focus changes. |
Cmn
|
Unit |
This function is deprecated. You no longer have to call these apis when focus changes. |
Cmn
|
Public functions
cancelAutofillForNode
funcancelAutofillForNode(autofillNode: AutofillNode): Unit
Cancel a previously supplied autofill request.
| Parameters | |
|---|---|
autofillNode: AutofillNode |
The node that needs to be auto-filled. This function is usually called when an autofill-able component loses focus. |
requestAutofillForNode
funrequestAutofillForNode(autofillNode: AutofillNode): Unit
Request autofill for the specified node.
| Parameters | |
|---|---|
autofillNode: AutofillNode |
The node that needs to be auto-filled. This function is usually called when an autofill-able component gains focus. |