共用方式為


InputDevice.SourceBluetoothStylus 欄位

定義

警告

This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.

輸入裝置是藍牙手寫筆。

[Android.Runtime.Register("SOURCE_BLUETOOTH_STYLUS", ApiSince=23)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)]
public const Android.Views.InputSourceType SourceBluetoothStylus = 49154;
[<Android.Runtime.Register("SOURCE_BLUETOOTH_STYLUS", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)>]
val mutable SourceBluetoothStylus : Android.Views.InputSourceType

欄位值

Value = 49154

實作

屬性

備註

輸入裝置是藍牙手寫筆。

請注意,此位只是表示輸入設備能夠從藍牙手寫筆取得輸入。 若要判斷指定的觸控事件是否由手寫筆產生,請檢查針對每個個別指標傳 MotionEvent#getToolType(int) 回的工具類型。

單一觸控事件可能會有多個具有不同工具類型的指標,例如具有一個具有工具類型的 MotionEvent#TOOL_TYPE_FINGER 指標的事件,以及另一個具有工具類型的 MotionEvent#TOOL_TYPE_STYLUS指標。 因此,不論 所 MotionEvent#getSource()報告的來源為何,檢查每個指標的工具類型都很重要。

藍牙手寫筆通常會從手寫筆本身接收其壓力和按鈕狀態資訊,並從另一個來源衍生其餘部分。 例如,與觸摸屏搭配使用的藍牙手寫筆會從觸摸屏衍生其接觸位置和指標大小,而且可能不比手指等其他工具更準確。

android.view.InputDevice.SOURCE_BLUETOOTH_STYLUSJava 檔。

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

適用於