pub async fn set_session_accessibility(status: bool) -> Result<(), AtspiError>
Expand description

Set the IsEnabled property in the session bus.

Assistive Technology provider applications (ATs) should set the accessibility IsEnabled status on the users session bus on startup as applications may monitor this property to enable their accessibility support dynamically.

See: The freedesktop - AT-SPI2 wiki

Example

    let result =  tokio_test::block_on( atspi_connection::set_session_accessibility(true) );
    assert!(result.is_ok());

Errors

  1. when no connection with the session bus can be established,
  2. if creation of a atspi_proxies::bus::StatusProxy fails
  3. if the IsEnabled property cannot be read
  4. the IsEnabled property cannot be set.