/// Creates a new focus listener that holds proxy to text and shortcut manager.
/// The caller is expected to spawn a task to continually listen to focus change event.
///
/// # Parameters
/// - `text_manager`: A proxy to the text manager service.
/// - `shortcut_manager`: A proxy to the shortcut manager service.
/// - `focus_chain_listener`: A channel that receives focus chain updates.
///
/// # Errors
/// If unable to connect to text_manager, shortcut manager or protocols.
Creates a new focus listener that holds proxy to text and shortcut manager.
The caller is expected to spawn a task to continually listen to focus change event.
Creates a new focus listener that holds proxy to text and shortcut manager . The caller is expected to spawn a task to continually listen to focus change event .
fn new_listener(
        text_manager: fidl_focus::ControllerProxy,
        shortcut_manager: fidl_ui_shortcut::ManagerProxy,
        focus_chain_listener: focus::FocusChainListenerRequestStream,
    ) -> Self {
        Self { text_manager, shortcut_manager, focus_chain_listener }
    }
fn new_listener ( text_manager : fidl_focus :: ControllerProxy , shortcut_manager : fidl_ui_shortcut :: ManagerProxy , focus_chain_listener : focus :: FocusChainListenerRequestStream , ) -> Self { Self { text_manager , shortcut_manager , focus_chain_listener } }
Creates a new focus listener that holds proxy to text and shortcut manager.
Creates a new focus listener that holds proxy to text and shortcut manager .
text_manager
fidl_focus::ControllerProxy
A proxy to the text manager service.
A proxy to the text manager service .
shortcut_manager
fidl_ui_shortcut::ManagerProxy
A proxy to the shortcut manager service.
A proxy to the shortcut manager service .
focus_chain_listener
focus::FocusChainListenerRequestStream
A channel that receives focus chain updates.
A channel that receives focus chain updates .
errors
If unable to connect to text_manager, shortcut manager or protocols.
If unable to connect to text_manager shortcut manager or protocols .