Android Guides | Samples

Android.App.Dialog.Cancel Method

Cancel the dialog.

Syntax

[Android.Runtime.Register("cancel", "()V", "GetCancelHandler")]
public virtual Void Cancel ()

Remarks

Cancel the dialog. This is essentially the same as calling Dialog.Dismiss, but it will also call your IDialogInterfaceOnCancelListener (if registered).

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1