class TouchScreen

Defined at line 6310 of file fidling/gen/sdk/fidl/fuchsia.ui.test.input/fuchsia.ui.test.input/hlcpp/fuchsia/ui/test/input/cpp/fidl.h

A tool to inject touch events into Input Pipeline.

Please extend as necessary.

Public Methods

void ~TouchScreen ()
void SimulateTap (::fuchsia::ui::test::input::TouchScreenSimulateTapRequest TouchScreenSimulateTapRequest, SimulateTapCallback callback)

Simulates a tap at the requested location.

void SimulateMultiTap (::fuchsia::ui::test::input::TouchScreenSimulateMultiTapRequest TouchScreenSimulateMultiTapRequest, SimulateMultiTapCallback callback)

Simulates multi finger tap at the requested locations.

void SimulateSwipe (::fuchsia::ui::test::input::TouchScreenSimulateSwipeRequest TouchScreenSimulateSwipeRequest, SimulateSwipeCallback callback)

Simulates a swipe that starts at `start_location` and ends at `end_location`,

with a total number of move events equal to `move_event_count`.

The generated pointer event stream will be:

DOWN + CHANGE_1 + ... + CHANGE_n + UP, where n == `move_event_count`

Events are injected with no explicit delay in between if `duration` not set.

void SimulateMultiFingerGesture (::fuchsia::ui::test::input::TouchScreenSimulateMultiFingerGestureRequest TouchScreenSimulateMultiFingerGestureRequest, SimulateMultiFingerGestureCallback callback)

Simulates a multi fingers linear gesture that starts at `start_locations`

and ends at `end_locations`, with a total number of move events equal to

`move_event_count`. if the arguments are invalid, the server should close

the connection.

The generated pointer event stream will be:

DOWN + CHANGE_1 + ... + CHANGE_n + UP, where n == `move_event_count`

Events are injected with a small explicit delay in between.

void SimulateTouchEvent (::fuchsia::input::report::TouchInputReport report, SimulateTouchEventCallback callback)

Simulate a touch event by a touch input report.

TouchInputReport includes a list of contacts that are currently contacting the

touch surface. The report can represent multiply touch events by comparing with

previous reports received.