IDialogInterface.Cancel Method

Definition

Cancels the dialog, invoking the OnCancelListener.

[Android.Runtime.Register("cancel", "()V", "GetCancelHandler:Android.Content.IDialogInterfaceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Cancel ();
[<Android.Runtime.Register("cancel", "()V", "GetCancelHandler:Android.Content.IDialogInterfaceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Cancel : unit -> unit
Attributes

Remarks

Cancels the dialog, invoking the OnCancelListener.

The OnDismissListener may also be called if cancellation dismisses the dialog.

Java documentation for android.content.DialogInterface.cancel().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to