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

Syntax

[Android.Runtime.Register("obtain", "(JJIFFFFIFFII)Landroid/view/MotionEvent;", "")]
public static MotionEvent Obtain (long downTime, long eventTime, [Android.Runtime.GeneratedEnum] MotionEventActions action, float x, float y, float pressure, float size, [Android.Runtime.GeneratedEnum] MetaKeyStates metaState, float xPrecision, float yPrecision, int deviceId, [Android.Runtime.GeneratedEnum] Edge edgeFlags)

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.
pressure
The current pressure of this event. The pressure generally ranges from 0 (no pressure at all) to 1 (normal pressure), however values higher than 1 may be generated depending on the calibration of the input device.
size
A scaled value of the approximate size of the area being pressed when touched with the finger. The actual value in pixels corresponding to the finger touch is normalized with a device specific range of values and scaled to a value between 0 and 1.
metaState
The state of any meta / modifier keys that were in effect when the event was generated.
xPrecision
The precision of the X coordinate being reported.
yPrecision
The precision of the Y coordinate being reported.
deviceId
The id for the device that this event came from. An id of zero indicates that the event didn't come from a physical device; other numbers are arbitrary and you shouldn't depend on the values.
edgeFlags
A bitfield indicating which edges, if any, were touched by this MotionEvent.

Returns

Documentation for this section has not yet been entered.

Remarks

Create a new MotionEvent, filling in all of the basic values that define the motion.

[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