setOnCancelListener

fun setOnCancelListener(onCancelListener: DialogInterface.OnCancelListener): Boolean

Sets the DialogInterface.OnCancelListener for ProgressDialog. Should be used only if setCancelable was passed with 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