AutofillManager


Autofill API.

This interface is available to all composables via a CompositionLocal. The composable can then notify the Autofill framework that user values have been committed as required.

Summary

Public functions

Unit

Indicate the autofill context should be canceled.

Cmn
android
Unit

Indicate the autofill context should be committed.

Cmn
android

Public functions

cancel

fun cancel(): Unit

Indicate the autofill context should be canceled.

Call this function to notify the Autofill framework that the current context should be canceled. After calling this function, the framework will stop the current autofill session without processing any information entered in the autofillable field.

commit

fun commit(): Unit

Indicate the autofill context should be committed.

Call this function to notify the Autofill framework that the current context should be committed. After calling this function, the framework considers the form submitted, and the credentials entered will be processed.