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
Name | Value | Description |
---|---|---|
Down | 0 | Constant for ActionMasked: A pressed gesture has started, the motion contains the initial starting location. |
Up | 1 | |
Move | 2 | |
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 | |
PointerDown | 5 | Constant for ActionMasked: A non-primary pointer has gone down. |
Pointer1Up | 6 | |
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 | |
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 | |
ButtonRelease | 12 | |
Mask | 255 | Bit mask of the parts of the action code that are the action itself. |
Pointer2Down | 261 | |
Pointer2Up | 262 | |
Pointer3Down | 517 | |
Pointer3Up | 518 | |
PointerIdMask | 65280 | |
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.