template <>
class Server
Defined at line 2056 of file fidling/gen/sdk/fidl/fuchsia.ui.test.input/fuchsia.ui.test.input/cpp/fidl/fuchsia.ui.test.input/cpp/natural_messaging.h
Public Methods
void Server ()
Defined at line 2059 of file fidling/gen/sdk/fidl/fuchsia.ui.test.input/fuchsia.ui.test.input/cpp/fidl/fuchsia.ui.test.input/cpp/natural_messaging.h
void SimulateTap (SimulateTapRequest & request, SimulateTapCompleter::Sync & completer)
Simulates a tap at the requested location.
void SimulateMultiTap (SimulateMultiTapRequest & request, SimulateMultiTapCompleter::Sync & completer)
Simulates multi finger tap at the requested locations.
void SimulateSwipe (SimulateSwipeRequest & request, SimulateSwipeCompleter::Sync & completer)
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 (SimulateMultiFingerGestureRequest & request, SimulateMultiFingerGestureCompleter::Sync & completer)
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 (SimulateTouchEventRequest & request, SimulateTouchEventCompleter::Sync & completer)
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.
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~Server ()
Defined at line 2060 of file fidling/gen/sdk/fidl/fuchsia.ui.test.input/fuchsia.ui.test.input/cpp/fidl/fuchsia.ui.test.input/cpp/natural_messaging.h