# DialogInterface.OnMultiChoiceClickListener

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

# OnMultiChoiceClickListener

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/content/DialogInterface.OnMultiChoiceClickListener "View this page in Java")  

```
interface OnMultiChoiceClickListener
```

|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [android.content.DialogInterface.OnMultiChoiceClickListener](https://developer.android.com/reference/kotlin/android/content/DialogInterface.OnMultiChoiceClickListener#) |

Interface used to allow the creator of a dialog to run some code when an item in a multi-choice dialog is clicked.

## Summary

|                                                                                                                                                                                                                                                                                                                           Public methods                                                                                                                                                                                                                                                                                                                           ||
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onClick](https://developer.android.com/reference/kotlin/android/content/DialogInterface.OnMultiChoiceClickListener#onClick(android.content.DialogInterface,%20kotlin.Int,%20kotlin.Boolean))`(`dialog:` `[DialogInterface](https://developer.android.com/reference/kotlin/android/content/DialogInterface)!`, `which:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `isChecked:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` This method will be invoked when an item in the dialog is clicked. |

## Public methods

### onClick

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

```
abstract fun onClick(
    dialog: DialogInterface!, 
    which: Int, 
    isChecked: Boolean
): Unit
```

This method will be invoked when an item in the dialog is clicked.

|                                                                       Parameters                                                                        ||
|-------------|--------------------------------------------------------------------------------------------------------------------------------------------|
| `dialog`    | [DialogInterface](https://developer.android.com/reference/kotlin/android/content/DialogInterface)!:the dialog where the selection was made |
| `which`     | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the position of the item in the list that was clicked           |
| `isChecked` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):`true`if the click checked the item, else`false`        |