class MediaButtonsDevice

Defined at line 5620 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 media button events into Input Pipeline.

Please extend as necessary.

Public Methods

void ~MediaButtonsDevice ()
void SimulateButtonPress (::fuchsia::ui::test::input::MediaButtonsDeviceSimulateButtonPressRequest MediaButtonsDeviceSimulateButtonPressRequest, SimulateButtonPressCallback callback)

Simulates a button press and release on the requested button on the

device.

void SendButtonsState (::fuchsia::ui::test::input::MediaButtonsDeviceSendButtonsStateRequest MediaButtonsDeviceSendButtonsStateRequest, SendButtonsStateCallback callback)

Send a vector of pressing button on the requested button on the

device. Passing empty vector will release all pressing buttons.

void ScheduleSimulateButtonPress (::fuchsia::ui::test::input::MediaButtonsDeviceScheduleSimulateButtonPressRequest MediaButtonsDeviceScheduleSimulateButtonPressRequest, ScheduleSimulateButtonPressCallback callback)

Schedules a button press and release of the requested button at a

specific duration from now. "Now" is defined as the time when the request is processed by the

device, so there is some latency.