pub enum ControllerRequest {
Notify {
view_ref: ViewRef,
responder: ControllerNotifyResponder,
},
}
Expand description
Updates the focus of the keyboard subsystem.
Roles
This protocol will typically be:
- Implemented by platform components implementing the keyboard
subsystem. For example,
text_manager.cmx
. - 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)
Variants§
Notify
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 aZX_EVENTPAIR_PEER_CLOSED
signal (see documentation forfuchsia.ui.views.ViewRefControl
). - When the
ViewRef
receivesZX_EVENTPAIR_PEER_CLOSED
, the callee should stop delivering keystroke/text to the consumer associated withview_ref
. - The caller should wait for each call to be acknowledged before calling again, to avoid queueing large numbers of of updates.
Implementations§
source§impl ControllerRequest
impl ControllerRequest
pub fn into_notify(self) -> Option<(ViewRef, ControllerNotifyResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL