Dialog.SetCancelable(Boolean) Method

Definition

Sets whether this dialog is cancelable with the 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

boolean

Attributes

Remarks

Sets whether this dialog is cancelable with the BACK key.

Android reference for android.app.Dialog.setCancelable.

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