setDialogOnCancelListener

Sets a DialogInterface.OnCancelListener that will be informed when the progress dialog was cancelled by the user. Calling this method will replace any previously set listener. You may provide null to clear the listener.

Parameters

dialogCancelListener

DialogInterface.OnCancelListener that should be notified, or null to clear the listener.