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_changed
orFocusChainProviderPublisher::set_state_and_notify_always
.
Structs§
- Allows new focus chain values to be stored for transmission to watcher clients (through the corresponding
FocusChainProviderRequestStreamHandler
). - Handles streams of requests from
FocusChainProvider
clients, responding to them with the latest value from the correspondingFocusChainProviderPublisher
.
Functions§
- Creates a new publisher and stream handler pair. Their initial focus chain value is always
FocusKoidChain::default()
.