---
title: "AutofillManager"
description: "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."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
abstract class AutofillManager internal constructor()
```


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.


## Functions

```kotlin
abstract fun commit()
```


Indicate the autofill session should be committed.

Call this function to notify the Autofill framework that the current session should be
committed and so the entered credentials might be saved or updated. After calling this
function, the framework considers the form submitted, and any relevant dialog will appear to
notify the user of the data processed.


```kotlin
abstract fun cancel()
```


Indicate the autofill context should be canceled.

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



