語言

View.OnPointerCaptureChange(Boolean) 方法

定義

當視窗剛取得或失去指標擷取時,會被呼叫。

[Android.Runtime.Register("onPointerCaptureChange", "(Z)V", "GetOnPointerCaptureChange_ZHandler", ApiSince=26)]
public virtual void OnPointerCaptureChange(bool hasCapture);
[<Android.Runtime.Register("onPointerCaptureChange", "(Z)V", "GetOnPointerCaptureChange_ZHandler", ApiSince=26)>]
abstract member OnPointerCaptureChange : bool -> unit
override this.OnPointerCaptureChange : bool -> unit

參數

hasCapture
Boolean

若視圖現在有 pointerCapture,則為真;否則為假。

屬性

備註

當視窗剛取得或失去指標擷取時,會被呼叫。

的 android.view.View.onPointerCaptureChange(boolean)Java 檔。

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

適用於