AlertDialog.Builder.SetCancelable(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.