MotionEvent

Page 1 2 3 4

public static final int BUTTON_SECONDARY = 2 source
public static final int BUTTON_TERTIARY = 4 source
public static final int BUTTON_BACK = 8 source
public static final int BUTTON_FORWARD = 16 source
public static final int BUTTON_STYLUS_PRIMARY = 32 source
public static final int BUTTON_STYLUS_SECONDARY = 64 source
public static final int FLAG_WINDOW_IS_OBSCURED = 0x1 source
public static final int FLAG_WINDOW_IS_PARTIALLY_OBSCURED = 0x2 source
public static final int FLAG_CANCELED = 0x20 source
public static final int EDGE_TOP = 1 source
public static final int EDGE_BOTTOM = 2 source
public static final int EDGE_LEFT = 4 source
public static final int EDGE_RIGHT = 8 source
public static final int CLASSIFICATION_NONE = 0 source
public static final int CLASSIFICATION_AMBIGUOUS_GESTURE = 1 source
public static final int CLASSIFICATION_DEEP_PRESS = 2 source
public static final int CLASSIFICATION_TWO_FINGER_SWIPE = 3 source
public static final int CLASSIFICATION_MULTI_FINGER_SWIPE = 4 source
public static final int CLASSIFICATION_PINCH = 5 source
public static final int INVALID_POINTER_ID = -1 source

Methods

public static MotionEvent obtain(long downTime, long eventTime, int action, int pointerCount, PointerProperties[] pointerProperties, PointerCoords[] pointerCoords, int metaState, int buttonState, float xPrecision, float yPrecision, int deviceId, int edgeFlags, int source, int flags) source
public static MotionEvent obtain(long downTime, long eventTime, int action, int pointerCount, PointerProperties[] pointerProperties, PointerCoords[] pointerCoords, int metaState, int buttonState, float xPrecision, float yPrecision, int deviceId, int edgeFlags, int source, int displayId, int flags, int classification) source
public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, float pressure, float size, int metaState, float xPrecision, float yPrecision, int deviceId, int edgeFlags) source
public static MotionEvent obtain(long downTime, long eventTime, int action, float x, float y, int metaState) source
public static MotionEvent obtain(MotionEvent o) source
public static MotionEvent obtainNoHistory(MotionEvent o) source
public MotionEvent copy() source
public void recycle() empty body source
public int getDeviceId() source
public int getSource() source
public void setSource(int source) source
public long getEventTime() source
public long getEventTimeNanos() source
public long getDownTime() source
public void setDownTime(long downTime) source
public int getAction() source
public int getActionMasked() source
public int getActionIndex() source
public void setAction(int action) source
public int getActionButton() source
public void setActionButton(int button) source
public int getButtonState() source

Page 1 2 3 4


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.