Function tauri_sys::window::primary_monitor

source ·
pub async fn primary_monitor() -> Result<Option<Monitor>, Error>
Expand description

Returns the primary monitor of the system.

Returns None if it can’t identify any monitor as a primary one.

§Example

use tauri_sys::window::primary_monitor;

let monitor = primary_monitor().await?;