Android Guides | Samples

Android.App.Dialog.SetCancelable Method

Sets whether this dialog is cancelable with the Android.Views.KeyEvent.KEYCODE_BACK key.

Syntax

[Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")]
public virtual Void SetCancelable (Boolean flag)

Parameters

flag

Remarks

Sets whether this dialog is cancelable with the Android.Views.KeyEvent.KEYCODE_BACK key.

[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