语言

ViewConfiguration.GetFocusTraversalThreshold(Int32, Int32, Int32) 方法

定义

为特定输入设备配置和运动轴生成的运动提供焦点遍历阈值(以像素为单位)。

[Android.Runtime.Register("getFocusTraversalThreshold", "(III)I", "GetGetFocusTraversalThreshold_IIIHandler", ApiSince=37)]
public virtual int GetFocusTraversalThreshold(int inputDeviceId, int axis, int source);
[<Android.Runtime.Register("getFocusTraversalThreshold", "(III)I", "GetGetFocusTraversalThreshold_IIIHandler", ApiSince=37)>]
abstract member GetFocusTraversalThreshold : int * int * int -> int
override this.GetFocusTraversalThreshold : int * int * int -> int

参数

inputDeviceId
Int32

生成动作的 InputDevice ID。

axis
Int32

运动的轴。

source
Int32

动作的输入源。

返回

焦点遍历阈值(以像素为单位)。 如果给定配置不支持焦点遍历,此方法将返回 -1。

特性

注解

为特定输入设备配置和运动轴生成的运动提供焦点遍历阈值(以像素为单位)。

此处的焦点遍历阈值是指触发焦点遍历事件所需的最小移动距离。

Android 参考。android.view.ViewConfiguration.getFocusTraversalThreshold

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于