Language

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

boolean

Returns

This Builder object to allow for chaining of calls to set methods

Attributes

Remarks

Sets whether the dialog is cancelable or not. Default is true.

Android reference for android.app.AlertDialog.Builder.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