Share via


Dialog.SetCanceledOnTouchOutside(Boolean) Method

Definition

Sets whether this dialog is canceled when touched outside the window's bounds.

[Android.Runtime.Register("setCanceledOnTouchOutside", "(Z)V", "GetSetCanceledOnTouchOutside_ZHandler")]
public virtual void SetCanceledOnTouchOutside (bool cancel);
[<Android.Runtime.Register("setCanceledOnTouchOutside", "(Z)V", "GetSetCanceledOnTouchOutside_ZHandler")>]
abstract member SetCanceledOnTouchOutside : bool -> unit
override this.SetCanceledOnTouchOutside : bool -> unit

Parameters

cancel
Boolean

Whether the dialog should be canceled when touched outside the window.

Attributes

Remarks

Sets whether this dialog is canceled when touched outside the window's bounds. If setting to true, the dialog is set to be cancelable if not already set.

Java documentation for android.app.Dialog.setCanceledOnTouchOutside(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