Language

View.PointerCaptureModeRelative Field

Definition

Caution

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

A pointer capture mode in which touchpad gestures are recognized and reported like mouse movements.

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

Field Value

Value = 2
Attributes

Remarks

A pointer capture mode in which touchpad gestures are recognized and reported like mouse movements.

In this capture mode, the following gestures made on a captured touchpad will be recognized and reported:

Pointer movement gestures (such as moving a single finger on the pad) are reported like mouse movements, with the Move action and their relative position changes available through GetX() and GetY().

Scrolling gestures (such as two-finger swipes) are reported like scroll wheel movements on a mouse, with the Scroll action and the scroll amounts available through the Vscroll and Hscroll axes.

Motion values are proportional to the physical motion of the gesturing fingers, and the physical movement in mm can be found using the Resolution for the relevant axis.

These events are reported with MouseRelative.

Events from mice are always reported in the same way regardless of capture mode.

Android reference for android.view.View.POINTER_CAPTURE_MODE_RELATIVE.

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