Expand description
Provides a hanging-get implementation of the fuchsia.ui.focus.FocusChainProvider protocol.
- Create a new publisher and request stream handler using
make_publisher_and_stream_handler(). - Handle a new client’s stream of watch requests using
FocusChainProviderRequestStreamHandler::handle_request_stream. - Update the focus chain using
FocusChainProviderPublisher::set_state_and_notify_if_changedorFocusChainProviderPublisher::set_state_and_notify_always.
Structs§
- Focus
Chain Provider Publisher - Allows new focus chain values to be stored for transmission to watcher clients (through the
corresponding
FocusChainProviderRequestStreamHandler). - Focus
Chain Provider Request Stream Handler - Handles streams of requests from
FocusChainProviderclients, responding to them with the latest value from the correspondingFocusChainProviderPublisher.
Functions§
- make_
publisher_ and_ stream_ handler - Creates a new publisher and stream handler pair. Their initial focus chain value is always
FocusKoidChain::default().