語言

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()

藍牙觸控筆通常從觸控筆本身接收壓力和按鍵狀態資訊,其餘資訊則從其他來源取得。 例如,搭配觸控螢幕使用的藍牙觸控筆,其接觸位置和指標大小會由觸控螢幕推算,準確度可能不比手指等其他工具更準確。

Java 文件 android.view.InputDevice.SOURCE_BLUETOOTH_STYLUS

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

適用於