共用方式為


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
屬性

備註

設定此對話框是否可透過 KeyEvent#KEYCODE_BACK BACK 索引鍵取消。

android.app.Dialog.setCancelable(boolean)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於