class KeyboardListener
Defined at line 2143 of file fidling/gen/sdk/fidl/fuchsia.ui.input3/fuchsia.ui.input3/hlcpp/fuchsia/ui/input3/cpp/fidl.h
Client should implement this protocol to get notified of key events.
Public Methods
void ~KeyboardListener ()
void OnKeyEvent (::fuchsia::ui::input3::KeyEvent event, OnKeyEventCallback callback)
Called when a key event takes place, such as key press or release.
Protocol implementers must respond to acknowledge the event by returning Status
in a timely manner, i.e. not introducing significant delays to the
input pipeline (typically 10s of milliseconds).
Returning `NOT_HANDLED` means the event may be offered to other
clients of other related APIs.
Clients that do not acknowledge their events will eventually be disconnected.
Notification is only dispatched to a view that has focus. No other views,
including parents or children, will get notified specifically via `OnKeyEvent`.