語言

Dialog.SetCancelable(Boolean) 方法

定義

設定此對話是否可用 KeyEvent#KEYCODE_BACK BACK 鍵取消。

[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

參數

flag
Boolean

boolean

屬性

備註

設定此對話是否可透過 BACK 鍵取消。

Android 參考資料。android.app.Dialog.setCancelable

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於