MotionEventActions MotionEventActions Enum

Definition

Enumerates values returned by several types and taken as a parameter of several methods of MotionEvent.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

Fields

ButtonPress ButtonPress 11
ButtonRelease ButtonRelease 12
Cancel Cancel 3

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

Down Down 0

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

HoverEnter HoverEnter 9

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

HoverExit HoverExit 10

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

HoverMove HoverMove 7

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

Mask Mask 255

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

Move Move 2
Outside Outside 4

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

Pointer1Down Pointer1Down 5
Pointer1Up Pointer1Up 6
Pointer2Down Pointer2Down 261
Pointer2Up Pointer2Up 262
Pointer3Down Pointer3Down 517
Pointer3Up Pointer3Up 518
PointerDown PointerDown 5

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

PointerIdMask PointerIdMask 65280
PointerIdShift PointerIdShift 8
PointerIndexMask PointerIndexMask 65280

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

PointerIndexShift PointerIndexShift 8

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

PointerUp PointerUp 6

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

Scroll Scroll 8

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

Up Up 1

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