Partager via


AlertDialog.Builder.SetCancelable(Boolean) Method

Definition

Sets whether the dialog is cancelable or not.

[Android.Runtime.Register("setCancelable", "(Z)Landroid/app/AlertDialog$Builder;", "GetSetCancelable_ZHandler")]
public virtual Android.App.AlertDialog.Builder SetCancelable (bool cancelable);
[<Android.Runtime.Register("setCancelable", "(Z)Landroid/app/AlertDialog$Builder;", "GetSetCancelable_ZHandler")>]
abstract member SetCancelable : bool -> Android.App.AlertDialog.Builder
override this.SetCancelable : bool -> Android.App.AlertDialog.Builder

Parameters

cancelable
Boolean

Returns

Attributes

Remarks

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