setOnCancelListener

fun setOnCancelListener(onCancelListener: DialogInterface.OnCancelListener): Boolean

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

onCancelListener