Autofill

Added in 1.0.0
Deprecated in 1.8.0-rc01

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

fun cancelAutofillForNode(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

fun requestAutofillForNode(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.