class Keyboard

Defined at line 2052 of file fidling/gen/sdk/fidl/fuchsia.ui.input3/fuchsia.ui.input3/hlcpp/fuchsia/ui/input3/cpp/fidl.h

Components may request this service from their namespace to be notified of

physical key events.

Public Members

static const char[] Name_

Public Methods

void ~Keyboard ()
void AddListener (::fuchsia::ui::views::ViewRef view_ref, ::fidl::InterfaceHandle< ::fuchsia::ui::input3::KeyboardListener> listener, AddListenerCallback callback)

Add a key event listener for the specified View.

If multiple listeners are added, each will receive key events independently and

should respond with a `Status`.

The client calling `AddListener` should keep the connection to `Keyboard` alive

for as long as the events from `KeyboardListener` need to be received. Dropping the

connection to the `Keyboard` protocol will terminate `KeyboardListener` as well.