Compartir a través de


InputEvent.IsFromSource(InputSourceType) Method

Definition

Determines whether the event is from the given source.

[Android.Runtime.Register("isFromSource", "(I)Z", "GetIsFromSource_IHandler")]
public virtual bool IsFromSource (Android.Views.InputSourceType source);
[<Android.Runtime.Register("isFromSource", "(I)Z", "GetIsFromSource_IHandler")>]
abstract member IsFromSource : Android.Views.InputSourceType -> bool
override this.IsFromSource : Android.Views.InputSourceType -> bool

Parameters

source
InputSourceType

The input source to check against. This can be a specific device type, such as InputDevice#SOURCE_TOUCH_NAVIGATION, or a more generic device class, such as InputDevice#SOURCE_CLASS_POINTER.

Returns

Whether the event is from the given source.

Attributes

Remarks

Determines whether the event is from the given source.

Java documentation for android.view.InputEvent.isFromSource(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