InputDevice.SupportsSource(InputSourceType) 方法

定义

确定输入设备是否支持给定的源或源。

[Android.Runtime.Register("supportsSource", "(I)Z", "")]
public bool SupportsSource(Android.Views.InputSourceType source);
[<Android.Runtime.Register("supportsSource", "(I)Z", "")>]
member this.SupportsSource : Android.Views.InputSourceType -> bool

参数

source
InputSourceType

要检查的输入源或源。 这可以是泛型设备类型,例如 InputDevice#SOURCE_MOUSE,更通用的设备类,或者 InputDevice#SOURCE_CLASS_POINTER将源按位 ORed 组合在一起。

返回

设备是否可以生成所有给定源。

属性

注解

确定输入设备是否支持给定的源或源。

适用于 . 的 android.view.InputDevice.supportsSource(int)Java 文档

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

适用于