The methods of Android.Views.MotionEvent are listed below. For a list of all members, see the MotionEvent Members list.
See Also: Inherited members from Android.Views.InputEvent
static | ActionToString(MotionEventActions)Returns a string that represents the symbolic name of the specified unmasked action such as "ACTION_DOWN", "ACTION_POINTER_DOWN(3)" or an equivalent numeric constant such as "35" if unknown. | |
AddBatch(long, MotionEvent.PointerCoords[], MetaKeyStates)Add a new movement to the batch of movements in this event. | ||
AddBatch(long, float, float, float, float, MetaKeyStates)Add a new movement to the batch of movements in this event. | ||
static | AxisFromString(string)Gets an axis by its symbolic name such as "AXIS_X" or an equivalent numeric constant such as "42". | |
static | AxisToString(Axis)Returns a string that represents the symbolic name of the specified axis such as "AXIS_X" or an equivalent numeric constant such as "42" if unknown. | |
override | DescribeContents()Documentation for this section has not yet been entered. | |
FindPointerIndex(int)Given a pointer identifier, find the index of its data in the event. | ||
GetAxisValue(Axis)MotionEvent.GetAxisValue(Axis) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetAxisValue(Axis, int)Returns the value of the requested axis for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetHistoricalAxisValue(Axis, int)MotionEvent.GetHistoricalAxisValue(Axis, System.Int32, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalAxisValue(Axis, int, int)Returns the historical value of the requested axis, as per MotionEvent.GetAxisValue(Axis, System.Int32), occurred between this event and the previous event for the given pointer. | ||
GetHistoricalEventTime(int)Returns the time that a historical movement occurred between this event and the previous event, in the Android.OS.SystemClock.UptimeMillis time base. | ||
GetHistoricalOrientation(int)MotionEvent.GetHistoricalOrientation(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalOrientation(int, int)Returns a historical orientation coordinate, as per MotionEvent.GetOrientation(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalPointerCoords(int, int, MotionEvent.PointerCoords)Populates a NoType:android/view/MotionEvent$PointerCoords;Href=../../../reference/android/view/MotionEvent.PointerCoords.html object with historical pointer coordinate data, as per MotionEvent.GetPointerCoords(int, .PointerCoords), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalPressure(int)MotionEvent.GetHistoricalPressure(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalPressure(int, int)Returns a historical pressure coordinate, as per MotionEvent.GetPressure(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalSize(int)MotionEvent.GetHistoricalSize(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalSize(int, int)Returns a historical size coordinate, as per MotionEvent.GetSize(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalToolMajor(int)MotionEvent.GetHistoricalToolMajor(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalToolMajor(int, int)Returns a historical tool major axis coordinate, as per MotionEvent.GetToolMajor(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalToolMinor(int)MotionEvent.GetHistoricalToolMinor(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalToolMinor(int, int)Returns a historical tool minor axis coordinate, as per MotionEvent.GetToolMinor(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalTouchMajor(int)MotionEvent.GetHistoricalTouchMajor(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalTouchMajor(int, int)Returns a historical touch major axis coordinate, as per MotionEvent.GetTouchMajor(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalTouchMinor(int)MotionEvent.GetHistoricalTouchMinor(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalTouchMinor(int, int)Returns a historical touch minor axis coordinate, as per MotionEvent.GetTouchMinor(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalX(int)MotionEvent.GetHistoricalX(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalX(int, int)Returns a historical X coordinate, as per MotionEvent.GetX(int), that occurred between this event and the previous event for the given pointer. | ||
GetHistoricalY(int)MotionEvent.GetHistoricalY(int, System.Int32) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetHistoricalY(int, int)Returns a historical Y coordinate, as per MotionEvent.GetY(int), that occurred between this event and the previous event for the given pointer. | ||
GetOrientation(int)Returns the orientation of the touch area and tool area in radians clockwise from vertical for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetPointerCoords(int, MotionEvent.PointerCoords)Populates a NoType:android/view/MotionEvent$PointerCoords;Href=../../../reference/android/view/MotionEvent.PointerCoords.html object with pointer coordinate data for the specified pointer index. | ||
GetPointerId(int)Return the pointer identifier associated with a particular pointer data index is this event. | ||
GetPointerProperties(int, MotionEvent.PointerProperties)Populates a NoType:android/view/MotionEvent$PointerProperties;Href=../../../reference/android/view/MotionEvent.PointerProperties.html object with pointer properties for the specified pointer index. | ||
GetPressure(int)Returns the current pressure of this event for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetSize(int)Returns a scaled value of the approximate size for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetToolMajor(int)Returns the length of the major axis of an ellipse that describes the size of the approaching tool for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetToolMinor(int)Returns the length of the minor axis of an ellipse that describes the size of the approaching tool for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetToolType(int)Gets the tool type of a pointer for the given pointer index. | ||
GetTouchMajor(int)Returns the length of the major axis of an ellipse that describes the touch area at the point of contact for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetTouchMinor(int)Returns the length of the minor axis of an ellipse that describes the touch area at the point of contact for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetX()MotionEvent.GetX(int) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetX(int)Returns the X coordinate of this event for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
GetY()MotionEvent.GetY(int) for the first pointer index (may be an arbitrary pointer identifier). | ||
GetY(int)Returns the Y coordinate of this event for the given pointer index (use MotionEvent.GetPointerId(int) to find the pointer identifier for this index). | ||
IsButtonPressed(MotionEventButtonState)Checks if a mouse or stylus button (or combination of buttons) is pressed. | ||
static | Obtain(MotionEvent)Create a new MotionEvent, copying from an existing one. | |
static | Obtain(long, long, MotionEventActions, float, float, float, float, MetaKeyStates, float, float, int, Edge)Create a new MotionEvent, filling in all of the basic values that define the motion. | |
static | Obtain(long, long, int, float, float, float, float, MetaKeyStates, float, float, int, Edge)Documentation for this section has not yet been entered. | |
static | Obtain(long, long, MotionEventActions, int, int[], MotionEvent.PointerCoords[], MetaKeyStates, float, float, int, Edge, InputSourceType, MotionEventFlags)Create a new MotionEvent, filling in all of the basic values that define the motion. | |
static | Obtain(long, long, MotionEventActions, int, float, float, float, float, MetaKeyStates, float, float, int, Edge)Create a new MotionEvent, filling in all of the basic values that define the motion. | |
static | Obtain(long, long, int, int, int[], MotionEvent.PointerCoords[], MetaKeyStates, float, float, int, Edge, int, int)Documentation for this section has not yet been entered. | |
static | Obtain(long, long, int, int, float, float, float, float, MetaKeyStates, float, float, int, Edge)Documentation for this section has not yet been entered. | |
static | Obtain(long, long, MotionEventActions, int, MotionEvent.PointerProperties[], MotionEvent.PointerCoords[], MetaKeyStates, MotionEventButtonState, float, float, int, Edge, InputSourceType, MotionEventFlags)Create a new MotionEvent, filling in all of the basic values that define the motion. | |
static | Obtain(long, long, MotionEventActions, float, float, MetaKeyStates)Create a new MotionEvent, filling in a subset of the basic motion values. | |
static | Obtain(long, long, int, float, float, MetaKeyStates)Documentation for this section has not yet been entered. | |
static | ObtainNoHistory(MotionEvent)Create a new MotionEvent, copying from an existing one, but not including any historical point information. | |
OffsetLocation(float, float)Adjust this event's location. | ||
Recycle()Recycle the MotionEvent, to be re-used by a later caller. | ||
SetLocation(float, float)Set this event's location. | ||
SetSource(InputSourceType)Modifies the source of the event. | ||
Transform(Android.Graphics.Matrix)Applies a transformation matrix to all of the points in the event. | ||
override | WriteToParcel(Android.OS.Parcel, Android.OS.ParcelableWriteFlags)Flatten this object in to a Parcel. |