The identifier for the positive button.
The identifier for the negative button.
The identifier for the neutral button.
Interface used to allow the creator of a dialog to run some code when the
dialog is canceled.
This will only be called when the dialog is canceled, if the creator
needs to know when it is dismissed in general, use
DialogInterface.OnDismissListener.
This method will be invoked when the dialog is canceled.
- Parameters:
dialog The dialog that was canceled will be passed into the
method.
Interface used to allow the creator of a dialog to run some code when the
dialog is dismissed.
This method will be invoked when the dialog is dismissed.
- Parameters:
dialog The dialog that was dismissed will be passed into the
method.
Interface used to allow the creator of a dialog to run some code when the
dialog is shown.
This method will be invoked when the dialog is shown.
- Parameters:
dialog The dialog that was shown will be passed into the
method.
Interface used to allow the creator of a dialog to run some code when an
item on the dialog is clicked..
This method will be invoked when a button in the dialog is clicked.
- Parameters:
dialog The dialog that received the click.which The button that was clicked (e.g.
DialogInterface.BUTTON1) or the position
of the item clicked.
Interface used to allow the creator of a dialog to run some code when an
item in a multi-choice dialog is clicked.
This method will be invoked when an item in the dialog is clicked.
- Parameters:
dialog The dialog where the selection was made.which The position of the item in the list that was clicked.isChecked True if the click checked the item, else false.
Interface definition for a callback to be invoked when a key event is
dispatched to this dialog. The callback will be invoked before the key
event is given to the dialog.
Called when a key is dispatched to a dialog. This allows listeners to
get a chance to respond before the dialog.
- Parameters:
dialog The dialog the key has been dispatched to.keyCode The code for the physical key that was pressedevent The KeyEvent object containing full information about
the event.- Returns:
- True if the listener has consumed the event, false otherwise.