다음을 통해 공유


MotionEvent.AddBatch Method

Definition

Overloads

AddBatch(Int64, MotionEvent+PointerCoords[], MetaKeyStates)

Add a new movement to the batch of movements in this event.

AddBatch(Int64, Single, Single, Single, Single, MetaKeyStates)

Add a new movement to the batch of movements in this event.

AddBatch(Int64, MotionEvent+PointerCoords[], MetaKeyStates)

Add a new movement to the batch of movements in this event.

[Android.Runtime.Register("addBatch", "(J[Landroid/view/MotionEvent$PointerCoords;I)V", "")]
public void AddBatch (long eventTime, Android.Views.MotionEvent.PointerCoords[]? pointerCoords, Android.Views.MetaKeyStates metaState);
[<Android.Runtime.Register("addBatch", "(J[Landroid/view/MotionEvent$PointerCoords;I)V", "")>]
member this.AddBatch : int64 * Android.Views.MotionEvent.PointerCoords[] * Android.Views.MetaKeyStates -> unit

Parameters

eventTime
Int64

The time stamp (in ms) for this data.

pointerCoords
MotionEvent.PointerCoords[]

The new pointer coordinates.

metaState
MetaKeyStates

Meta key state.

Attributes

Remarks

Java documentation for android.view.MotionEvent.addBatch(long, float, float, float, float, int).

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

AddBatch(Int64, Single, Single, Single, Single, MetaKeyStates)

Add a new movement to the batch of movements in this event.

[Android.Runtime.Register("addBatch", "(JFFFFI)V", "")]
public void AddBatch (long eventTime, float x, float y, float pressure, float size, Android.Views.MetaKeyStates metaState);
[<Android.Runtime.Register("addBatch", "(JFFFFI)V", "")>]
member this.AddBatch : int64 * single * single * single * single * Android.Views.MetaKeyStates -> unit

Parameters

eventTime
Int64

The time stamp (in ms) for this data.

x
Single

The new X position.

y
Single

The new Y position.

pressure
Single

The new pressure.

size
Single

The new size.

metaState
MetaKeyStates

Meta key state.

Attributes

Remarks

Add a new movement to the batch of movements in this event. The event's current location, position and size is updated to the new values. The current values in the event are added to a list of historical values.

Only applies to #ACTION_MOVE or #ACTION_HOVER_MOVE events.

Java documentation for android.view.MotionEvent.addBatch(long, float, float, float, float, int).

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