DialogFragment.Cancelable Property

Definition

Return the current value of #setCancelable(boolean). -or- Control whether the shown Dialog is cancelable.

public virtual bool Cancelable { [Android.Runtime.Register("isCancelable", "()Z", "GetIsCancelableHandler")] get; [Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")] set; }
[<get: Android.Runtime.Register("isCancelable", "()Z", "GetIsCancelableHandler")>]
[<set: Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")>]
member this.Cancelable : bool with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Return the current value of #setCancelable(boolean).

Java documentation for android.app.DialogFragment.isCancelable().

Property setter documentation:

Control whether the shown Dialog is cancelable. Use this instead of directly calling Dialog#setCancelable(boolean) Dialog.setCancelable(boolean), because DialogFragment needs to change its behavior based on this.

Java documentation for android.app.DialogFragment.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