Android.Views.MotionEvent.Obtain Method
Create a new MotionEvent, filling in a subset of the basic motion values.

Syntax

[Android.Runtime.Register("obtain", "(JJIFFI)Landroid/view/MotionEvent;", "")]
public static MotionEvent Obtain (long downTime, long eventTime, [Android.Runtime.GeneratedEnum] MotionEventActions action, float x, float y, [Android.Runtime.GeneratedEnum] MetaKeyStates metaState)

Parameters

downTime
The time (in ms) when the user originally pressed down to start a stream of position events. This must be obtained from Android.OS.SystemClock.UptimeMillis.
eventTime
The the time (in ms) when this specific event was generated. This must be obtained from Android.OS.SystemClock.UptimeMillis.
action
The kind of action being performed, such as MotionEvent.ACTION_DOWN.
x
The X coordinate of this event.
y
The Y coordinate of this event.
metaState
The state of any meta / modifier keys that were in effect when the event was generated.

Returns

Documentation for this section has not yet been entered.

Remarks

Create a new MotionEvent, filling in a subset of the basic motion values. Those not specified here are: device id (always 0), pressure and size (always 1), x and y precision (always 1), and edgeFlags (always 0).

[Android Documentation]

Requirements

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