# GuidedActionAutofillSupport.OnAutofillListener

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/GuidedActionAutofillSupport.java+class:androidx.leanback.widget.GuidedActionAutofillSupport.OnAutofillListener) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
public interface GuidedActionAutofillSupport.OnAutofillListener
```

<br />

*** ** * ** ***

Listener for autofill event. Leanback will set the Listener on the custom view.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/leanback/widget/GuidedActionAutofillSupport.OnAutofillListener#onAutofill(android.view.View)(https://developer.android.com/reference/android/view/View.html view)` Custom view should call this method when autofill event happened. |

## Public methods

### onAutofill

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
abstract void onAutofill(View view)
```

Custom view should call this method when autofill event happened.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/view/View.html view` | The view where autofill happened. |