Class PlatformViewsChannel.PlatformViewTouch
java.lang.Object
io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewTouch
- Enclosing class:
- PlatformViewsChannel
The state of a touch event in Flutter within a platform view.
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
final int
TODO(mattcarroll): javadocfinal int
TODO(mattcarroll): javadocfinal Number
The amount of time that the touch has been pressed.final int
TODO(mattcarroll): javadocfinal Number
TODO(mattcarroll): javadocfinal int
TODO(mattcarroll): javadocfinal int
TODO(mattcarroll): javadocfinal long
TODO(iskakaushik): javadocfinal int
The number of pointers (e.g, fingers) involved in the touch event.final Object
Coordinates for each pointer, encoded in a raw format.final Object
Properties for each pointer, encoded in a raw format.final int
TODO(mattcarroll): javadocfinal int
The ID of the platform view as seen by the Flutter side.final float
Coordinate precision along the x-axis.final float
Coordinate precision along the y-axis. -
Constructor Summary
ConstructorDescriptionPlatformViewTouch
(int viewId, Number downTime, Number eventTime, int action, int pointerCount, Object rawPointerPropertiesList, Object rawPointerCoords, int metaState, int buttonState, float xPrecision, float yPrecision, int deviceId, int edgeFlags, int source, int flags, long motionEventId) -
Method Summary
-
Field Details
-
viewId
public final int viewIdThe ID of the platform view as seen by the Flutter side. -
downTime
The amount of time that the touch has been pressed. -
eventTime
TODO(mattcarroll): javadoc -
action
public final int action -
pointerCount
public final int pointerCountThe number of pointers (e.g, fingers) involved in the touch event. -
rawPointerPropertiesList
Properties for each pointer, encoded in a raw format. Expected to be formatted as a List[List[Integer]], where each inner list has two items: - An id, at index 0, corresponding toMotionEvent.PointerProperties.id
- A tool type, at index 1, corresponding toMotionEvent.PointerProperties.toolType
. -
rawPointerCoords
Coordinates for each pointer, encoded in a raw format. -
metaState
public final int metaStateTODO(mattcarroll): javadoc -
buttonState
public final int buttonStateTODO(mattcarroll): javadoc -
xPrecision
public final float xPrecisionCoordinate precision along the x-axis. -
yPrecision
public final float yPrecisionCoordinate precision along the y-axis. -
deviceId
public final int deviceIdTODO(mattcarroll): javadoc -
edgeFlags
public final int edgeFlagsTODO(mattcarroll): javadoc -
source
public final int sourceTODO(mattcarroll): javadoc -
flags
public final int flagsTODO(mattcarroll): javadoc -
motionEventId
public final long motionEventIdTODO(iskakaushik): javadoc
-
-
Constructor Details
-
PlatformViewTouch
public PlatformViewTouch(int viewId, @NonNull Number downTime, @NonNull Number eventTime, int action, int pointerCount, @NonNull Object rawPointerPropertiesList, @NonNull Object rawPointerCoords, int metaState, int buttonState, float xPrecision, float yPrecision, int deviceId, int edgeFlags, int source, int flags, long motionEventId)
-