setOnCancelListener
open fun setOnCancelListener(onCancelListener: DialogInterface.OnCancelListener): AlertDialog.Builder(source)
Sets the callback that will be called if the dialog is canceled.
Even in a cancelable dialog, the dialog may be dismissed for reasons other than being canceled or one of the supplied choices being selected. If you are interested in listening for all cases where the dialog is dismissed and not just when it is canceled, see setOnDismissListener.
Return
This Builder object to allow for chaining of calls to set methods
This Builder object to allow for chaining of calls to set methods