MotionEventActions Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types and taken as a parameter of several methods of MotionEvent.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum MotionEventActions
[<System.Flags>]
type MotionEventActions =
- Inheritance
-
MotionEventActions
- Attributes
Fields
ButtonPress | 11 | |
ButtonRelease | 12 | |
Cancel | 3 | Constant for ActionMasked: The current gesture has been aborted. You will not receive any more points in it. |
Down | 0 | Constant for ActionMasked: A pressed gesture has started, the motion contains the initial starting location. |
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. |
HoverMove | 7 | Constant for ActionMasked: A change happened but the pointer is not down (unlike Move). |
Mask | 255 | Bit mask of the parts of the action code that are the action itself. |
Move | 2 | |
Outside | 4 | Constant for ActionMasked: A movement has happened outside of the normal bounds of the UI element. |
Pointer1Down | 5 | |
Pointer1Up | 6 | |
Pointer2Down | 261 | |
Pointer2Up | 262 | |
Pointer3Down | 517 | |
Pointer3Up | 518 | |
PointerDown | 5 | Constant for ActionMasked: A non-primary pointer has gone down. |
PointerIdMask | 65280 | |
PointerIdShift | 8 | |
PointerIndexMask | 65280 | Bits in the action code that represent a pointer index, used with PointerDown and PointerUp. |
PointerIndexShift | 8 | Bit shift for the action bits holding the pointer index as defined by PointerIndexMask. |
PointerUp | 6 | Constant for ActionMasked: A non-primary pointer has gone up. |
Scroll | 8 | Constant for ActionMasked: The motion event contains relative vertical and/or horizontal scroll offsets. |
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.