Android Guides | Samples

Android.Views.MotionEvent.PointerCoords Class

Transfer object for pointer coordinates.

See Also: MotionEvent+PointerCoords

Syntax

[Android.Runtime.Register("android/view/MotionEvent$PointerCoords", DoNotGenerateAcw=true)]
public sealed class MotionEvent.PointerCoords : Object

Remarks

Transfer object for pointer coordinates. Objects of this type can be used to specify the pointer coordinates when creating new MotionEvent objects and to query pointer coordinates in bulk. Refer to InputDevice for information about how different kinds of input devices and sources represent pointer coordinates.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9

The members of Android.Views.MotionEvent.PointerCoords are listed below.

See Also: Object

Public Constructors

Creates a pointer coords object with all axes initialized to zero.
Creates a pointer coords object as a copy of the contents of another pointer coords object.

Public Properties

OrientationSingle. The orientation of the touch area and tool area in radians clockwise from vertical.
PressureSingle. A normalized value that describes the pressure applied to the device by a finger or other tool.
SizeSingle. A normalized value that describes the approximate size of the pointer touch area in relation to the maximum detectable size of the device.
ToolMajorSingle. The length of the major axis of an ellipse that describes the size of the approaching tool.
ToolMinorSingle. The length of the minor axis of an ellipse that describes the size of the approaching tool.
TouchMajorSingle. The length of the major axis of an ellipse that describes the touch area at the point of contact.
TouchMinorSingle. The length of the minor axis of an ellipse that describes the touch area at the point of contact.
XSingle. The X component of the pointer movement.
YSingle. The Y component of the pointer movement.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Clear()
Clears the contents of this object.
CopyFrom(MotionEvent+PointerCoords)
Copies the contents of another pointer coords object.
GetAxisValue(Axis) : Single
Gets the value associated with the specified axis.
SetAxisValue(Axis, Single)
Sets the value associated with the specified axis.