Dialog.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 this dialog is cancelable with the
KeyEvent#KEYCODE_BACK BACK
key.
[Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")]
public virtual void SetCancelable (bool flag);
[<Android.Runtime.Register("setCancelable", "(Z)V", "GetSetCancelable_ZHandler")>]
abstract member SetCancelable : bool -> unit
override this.SetCancelable : bool -> unit
Parameters
- flag
- Boolean
- Attributes
Remarks
Sets whether this dialog is cancelable with the KeyEvent#KEYCODE_BACK BACK
key.
Java documentation for android.app.Dialog.setCancelable(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.