DialogInterface
interface DialogInterface
| android.content.DialogInterface | 
Interface that defines a dialog-type class that can be shown, dismissed, or canceled, and may have buttons that can be clicked.
Summary
| Nested classes | |
|---|---|
| abstract | Interface used to allow the creator of a dialog to run some code when the dialog is canceled. | 
| abstract | Interface used to allow the creator of a dialog to run some code when an item on the dialog is clicked. | 
| abstract | Interface used to allow the creator of a dialog to run some code when the dialog is dismissed. | 
| abstract | Interface definition for a callback to be invoked when a key event is dispatched to this dialog. | 
| abstract | Interface used to allow the creator of a dialog to run some code when an item in a multi-choice dialog is clicked. | 
| abstract | Interface used to allow the creator of a dialog to run some code when the dialog is shown. | 
| Constants | |
|---|---|
| static Int | |
| static Int | |
| static Int | |
| static Int | The identifier for the negative button. | 
| static Int | The identifier for the neutral button. | 
| static Int | The identifier for the positive button. | 
| Public methods | |
|---|---|
| abstract Unit | cancel()Cancels the dialog, invoking the  | 
| abstract Unit | dismiss()Dismisses the dialog, invoking the  | 
Constants
BUTTON_NEGATIVE
static val BUTTON_NEGATIVE: Int
The identifier for the negative button.
Value: -2BUTTON_NEUTRAL
static val BUTTON_NEUTRAL: Int
The identifier for the neutral button.
Value: -3BUTTON_POSITIVE
static val BUTTON_POSITIVE: Int
The identifier for the positive button.
Value: -1Public methods
cancel
abstract fun cancel(): Unit
Cancels the dialog, invoking the OnCancelListener. 
 The OnDismissListener may also be called if cancellation dismisses the dialog.
dismiss
abstract fun dismiss(): Unit
Dismisses the dialog, invoking the OnDismissListener.
