InputDevice.GetMotionRange 方法

定義

多載

名稱 Description
GetMotionRange(Axis)

取得特定軸數 MotionEvent 值範圍的資訊。

GetMotionRange(Int32)
已淘汰.
GetMotionRange(Axis, InputSourceType)

取得特定軸數 MotionEvent 值範圍的資訊。

GetMotionRange(Axis)

取得特定軸數 MotionEvent 值範圍的資訊。

[Android.Runtime.Register("getMotionRange", "(I)Landroid/view/InputDevice$MotionRange;", "")]
public Android.Views.InputDevice.MotionRange? GetMotionRange(Android.Views.Axis axis);
[<Android.Runtime.Register("getMotionRange", "(I)Landroid/view/InputDevice$MotionRange;", "")>]
member this.GetMotionRange : Android.Views.Axis -> Android.Views.InputDevice.MotionRange

參數

axis
Axis

軸常數。

傳回

值範圍,或若裝置不支援請求軸,則為空值。

屬性

備註

Java 文件 android.view.InputDevice.getMotionRange(int)

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

適用於

GetMotionRange(Int32)

警告

Please use GetMotionRange(Android.Views.Axis)

[System.Obsolete("Please use GetMotionRange(Android.Views.Axis)")]
public Android.Views.InputDevice.MotionRange? GetMotionRange(int rangeType);
[<System.Obsolete("Please use GetMotionRange(Android.Views.Axis)")>]
member this.GetMotionRange : int -> Android.Views.InputDevice.MotionRange

參數

rangeType
Int32

傳回

屬性

備註

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

適用於

GetMotionRange(Axis, InputSourceType)

取得特定軸數 MotionEvent 值範圍的資訊。

[Android.Runtime.Register("getMotionRange", "(II)Landroid/view/InputDevice$MotionRange;", "")]
public Android.Views.InputDevice.MotionRange? GetMotionRange(Android.Views.Axis axis, Android.Views.InputSourceType source);
[<Android.Runtime.Register("getMotionRange", "(II)Landroid/view/InputDevice$MotionRange;", "")>]
member this.GetMotionRange : Android.Views.Axis * Android.Views.InputSourceType -> Android.Views.InputDevice.MotionRange

參數

axis
Axis

軸常數。

source
InputSourceType

這是回傳資訊的來源。

傳回

值範圍,或若裝置不支援請求軸,則為空值。

屬性

備註

Java 文件 android.view.InputDevice.getMotionRange(int)

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

適用於