# OnClickAction

Added in[API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:  

# OnClickAction

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/service/autofill/OnClickAction "View this page in Kotlin")\|Java

`
public


interface
OnClickAction
`  
`


`

|----------------------------------------|
| android.service.autofill.OnClickAction |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known indirect subclasses [VisibilitySetterAction](https://developer.android.com/reference/android/service/autofill/VisibilitySetterAction) |-------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [VisibilitySetterAction](https://developer.android.com/reference/android/service/autofill/VisibilitySetterAction) | Action used to change the visibility of other child view in a[CustomDescription](https://developer.android.com/reference/android/service/autofill/CustomDescription)[presentation template](https://developer.android.com/reference/android/widget/RemoteViews). | |

<br />

*** ** * ** ***

Class used to define an action to be performed when a child view in a[presentation](https://developer.android.com/reference/android/widget/RemoteViews)is clicked.

Typically used to switch the visibility of other views in a[custom save UI](https://developer.android.com/reference/android/service/autofill/CustomDescription).

**Note:**This interface is not meant to be implemented by app developers; only implementations provided by the Android System can be used in other Autofill APIs.