Bagikan melalui


Dialog.SetOnCancelListener(IDialogInterfaceOnCancelListener) Method

Definition

Set a listener to be invoked when the dialog is canceled.

[Android.Runtime.Register("setOnCancelListener", "(Landroid/content/DialogInterface$OnCancelListener;)V", "GetSetOnCancelListener_Landroid_content_DialogInterface_OnCancelListener_Handler")]
public virtual void SetOnCancelListener (Android.Content.IDialogInterfaceOnCancelListener? listener);
[<Android.Runtime.Register("setOnCancelListener", "(Landroid/content/DialogInterface$OnCancelListener;)V", "GetSetOnCancelListener_Landroid_content_DialogInterface_OnCancelListener_Handler")>]
abstract member SetOnCancelListener : Android.Content.IDialogInterfaceOnCancelListener -> unit
override this.SetOnCancelListener : Android.Content.IDialogInterfaceOnCancelListener -> unit

Parameters

listener
IDialogInterfaceOnCancelListener

The DialogInterface.OnCancelListener to use.

Attributes

Remarks

Java documentation for android.app.Dialog.setOnCancelListener(android.content.OnCancelListener).

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