Udostępnij za pośrednictwem


InputDevice.SourceClassPointer Field

Definition

Caution

This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.

The input source is a pointing device associated with a display.

[Android.Runtime.Register("SOURCE_CLASS_POINTER")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)]
public const Android.Views.InputSourceType SourceClassPointer = 2;
[<Android.Runtime.Register("SOURCE_CLASS_POINTER")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Views.InputSourceType enum directly instead of this field.", true)>]
val mutable SourceClassPointer : Android.Views.InputSourceType

Field Value

Value = 2

Implements

Attributes

Remarks

The input source is a pointing device associated with a display. Examples: #SOURCE_TOUCHSCREEN, #SOURCE_MOUSE.

A MotionEvent should be interpreted as absolute coordinates in display units according to the View hierarchy. Pointer down/up indicated when the finger touches the display or when the selection button is pressed/released.

Use #getMotionRange to query the range of the pointing device. Some devices permit touches outside the display area so the effective range may be somewhat smaller or larger than the actual display size.

Java documentation for android.view.InputDevice.SOURCE_CLASS_POINTER.

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