Android Guides | Samples

Android.App.Dialog.SetCanceledOnTouchOutside Method

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

Syntax

[Android.Runtime.Register("setCanceledOnTouchOutside", "(Z)V", "GetSetCanceledOnTouchOutside_ZHandler")]
public virtual Void SetCanceledOnTouchOutside (Boolean cancel)

Parameters

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

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.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1