set On Cancel Listener
fun setOnCancelListener(onCancelListener: DialogInterface.OnCancelListener): Boolean
Content copied to clipboard
Sets the DialogInterface.OnCancelListener for ProgressDialog. Should be used only if isCancelable was set true earlier since cancel() cannot be called explicitly and ProgressDialog is NOT cancelable by Default.
Return
true if ProgressDialog is Cancelable. false otherwise.
Parameters
on Cancel Listener
DialogInterface.OnCancelListener listener object.