DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/WindServiceHandlers/NativeHost/
IsFullscreen.rs1#![allow(non_snake_case, unused_variables, dead_code, unused_imports)]
2
3use serde_json::{Value, json};
8use tauri::{AppHandle, Manager};
9
10pub async fn NativeIsFullscreen(ApplicationHandle:AppHandle) -> Result<Value, String> {
11 let Window = ApplicationHandle.get_webview_window("main");
12
13 if let Some(W) = Window {
14 Ok(json!(W.is_fullscreen().unwrap_or(false)))
15 } else {
16 Ok(json!(false))
17 }
18}