setPositiveButton
open fun setPositiveButton(@StringRes textId: Int, listener: DialogInterface.OnClickListener): AlertDialog.Builder(source)
Set a listener to be invoked when the positive button of the dialog is pressed.
Return
This Builder object to allow for chaining of calls to set methods
Parameters
textId
The resource id of the text to display in the positive button
listener
The DialogInterface.OnClickListener to use.
open fun setPositiveButton(text: CharSequence, listener: DialogInterface.OnClickListener): AlertDialog.Builder(source)
Set a listener to be invoked when the positive button of the dialog is pressed.
Return
This Builder object to allow for chaining of calls to set methods
Parameters
text
The text to display in the positive button
listener
The DialogInterface.OnClickListener to use.