[android-components](../../index.md) / [mozilla.components.concept.engine.webnotifications](../index.md) / [WebNotification](index.md) / [onClick](./on-click.md)

# onClick

`val onClick: () -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/concept/engine/src/main/java/mozilla/components/concept/engine/webnotifications/WebNotification.kt#L35)

Callback called with the selected action, or null if the main body of the
notification was clicked.

### Property

`onClick` - Callback called with the selected action, or null if the main body of the
notification was clicked.