/// Creates a new touch handler that holds touch pointer injectors.
/// The caller is expected to spawn a task to continually watch for updates to the viewport.
/// Example:
/// let handler = TouchInjectorHandler::new_with_config_proxy(config_proxy, display_size).await?;
/// fasync::Task::local(handler.clone().watch_viewport()).detach();
///
/// # Parameters
/// - `configuration_proxy`: A proxy used to get configuration details for pointer
///    injection.
/// - `display_size`: The size of the associated touch display.
///
/// # Errors
/// If unable to get injection view refs from `configuration_proxy`.
/// If unable to connect to pointerinjector Registry protocol.
Creates a new touch handler that holds touch pointer injectors.
The caller is expected to spawn a task to continually watch for updates to the viewport.
Creates a new touch handler that holds touch pointer injectors . The caller is expected to spawn a task to continually watch for updates to the viewport .
pub async fn new_with_config_proxy(
        configuration_proxy: pointerinjector_config::SetupProxy,
        display_size: Size,
    ) -> Result<Rc<Self>, Error> {
        let injector_registry_proxy = connect_to_protocol::<pointerinjector::RegistryMarker>()?;
        Self::new_handler(configuration_proxy, injector_registry_proxy, display_size).await
    }
pub async fn new_with_config_proxy ( configuration_proxy : pointerinjector_config :: SetupProxy , display_size : Size , ) -> Result < Rc < Self > , Error > { let injector_registry_proxy = connect_to_protocol :: < pointerinjector :: RegistryMarker > ( ) ? ; Self :: new_handler ( configuration_proxy , injector_registry_proxy , display_size ) . await }
Creates a new touch handler that holds touch pointer injectors.
Creates a new touch handler that holds touch pointer injectors .
configuration_proxy
pointerinjector_config::SetupProxy
A proxy used to get configuration details for pointer
injection.
A proxy used to get configuration details for pointer injection .
display_size
Size
The size of the associated touch display.
The size of the associated touch display .
errors
If unable to get injection view refs from `configuration_proxy`.
If unable to connect to pointerinjector Registry protocol.
If unable to get injection view refs from ` configuration_proxy ` . If unable to connect to pointerinjector Registry protocol .