pub async fn available_monitors() -> Result<impl Iterator<Item = Monitor>, Error>
Expand description
Returns the list of all the monitors available on the system.
ยงExample
use tauri_sys::window::available_monitors;
use web_sys::console;
let monitors = available_monitors().await?;
for monitor in monitors {
console::log_1(&format!("{:?}", monitor).into());
}