InputDevice.MotionRange.IsFromSource(InputSourceType) Method

Definition

Determines whether the event is from the given source.

[Android.Runtime.Register("isFromSource", "(I)Z", "")]
public bool IsFromSource (Android.Views.InputSourceType source);
[<Android.Runtime.Register("isFromSource", "(I)Z", "")>]
member 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.InputDevice.MotionRange.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