MotionEventActions Enum

Definition

Identifies actions reported by motion events.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum MotionEventActions
[<System.Flags>]
type MotionEventActions = 
Inheritance
MotionEventActions
Attributes

Fields

Name Value Description
Down 0

Constant for ActionMasked: A pressed gesture has started, the motion contains the initial starting location.

Up 1

Identifies the up motion-event action.

Move 2

Identifies the move motion-event action.

Cancel 3

Constant for ActionMasked: The current gesture has been aborted. You will not receive any more points in it.

Outside 4

Constant for ActionMasked: A movement has happened outside of the normal bounds of the UI element.

Pointer1Down 5

Identifies the pointer 1 down motion-event action.

PointerDown 5

Constant for ActionMasked: A non-primary pointer has gone down.

Pointer1Up 6

Identifies the pointer 1 up motion-event action.

PointerUp 6

Constant for ActionMasked: A non-primary pointer has gone up.

HoverMove 7

Constant for ActionMasked: A change happened but the pointer is not down (unlike Move).

PointerIdShift 8

Identifies the pointer id shift motion-event action.

PointerIndexShift 8

Bit shift for the action bits holding the pointer index as defined by PointerIndexMask.

Scroll 8

Constant for ActionMasked: The motion event contains relative vertical and/or horizontal scroll offsets.

HoverEnter 9

Constant for ActionMasked: The pointer is not down but has entered the boundaries of a window or view.

HoverExit 10

Constant for ActionMasked: The pointer is not down but has exited the boundaries of a window or view.

ButtonPress 11

Identifies the button press motion-event action.

ButtonRelease 12

Identifies the button release motion-event action.

Mask 255

Bit mask of the parts of the action code that are the action itself.

Pointer2Down 261

Identifies the pointer 2 down motion-event action.

Pointer2Up 262

Identifies the pointer 2 up motion-event action.

Pointer3Down 517

Identifies the pointer 3 down motion-event action.

Pointer3Up 518

Identifies the pointer 3 up motion-event action.

PointerIdMask 65280

Identifies the pointer id mask motion-event action.

PointerIndexMask 65280

Bits in the action code that represent a pointer index, used with PointerDown and PointerUp.

Remarks

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