Share via


Dialog.SetCancelable(Boolean) Method

Definition

Sets whether this dialog is cancelable with the KeyEvent#KEYCODE_BACK BACK key.

[Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")]
public virtual void SetCancelable (bool flag);
[<Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")>]
abstract member SetCancelable : bool -> unit
override this.SetCancelable : bool -> unit

Parameters

flag
Boolean
Attributes

Remarks

Sets whether this dialog is cancelable with the KeyEvent#KEYCODE_BACK BACK key.

Java documentation for android.app.Dialog.setCancelable(boolean).

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