Compartilhar via


InputDevice.SupportsSource(InputSourceType) Method

Definition

Determines whether the input device supports the given source or sources.

[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

Parameters

source
InputSourceType

The input source or sources to check against. This can be a generic device type such as InputDevice#SOURCE_MOUSE, a more generic device class, such as InputDevice#SOURCE_CLASS_POINTER, or a combination of sources bitwise ORed together.

Returns

Whether the device can produce all of the given sources.

Attributes

Remarks

Determines whether the input device supports the given source or sources.

Java documentation for android.view.InputDevice.supportsSource(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to