class Controller
Defined at line 164 of file fidling/gen/sdk/fidl/fuchsia.ui.keyboard.focus/fuchsia.ui.keyboard.focus/hlcpp/fuchsia/ui/keyboard/focus/cpp/fidl.h
Updates the focus of the keyboard subsystem.
# Roles
This protocol will typically be:
* Implemented by platform components implementing the keyboard
subsystem.
* Consumed by platform components which control UI policy.
E.g. Root Presenter, or the Workstation Session.
# Related protocols
* `fuchsia.ui.input3.Keyboard` (for receiving keystrokes)
* `fuchsia.ui.input.InputMethodEditor` (for text editing)
Public Members
static const char[] Name_
Public Methods
void ~Controller ()
void Notify (::fuchsia::ui::views::ViewRef view_ref, NotifyCallback callback)
Informs the implementer of `Controller` that further keyboard
data should be routed to the keystroke/text consumer
associated with `view_ref`.
# Notes
* The callee should monitor the provided `ViewRef` for a
`ZX_EVENTPAIR_PEER_CLOSED` signal (see documentation for
`fuchsia.ui.views.ViewRefControl`).
* When the `ViewRef` receives `ZX_EVENTPAIR_PEER_CLOSED`, the
callee should stop delivering keystroke/text to
the consumer associated with `view_ref`.
* The caller should wait for each call to be acknowledged
before calling again, to avoid queueing large numbers of
of updates.