tauri_sys::window

Function current_window

source
pub fn current_window() -> WebviewWindow
Expand description

Get an instance of WebviewWindow for the current webview window.

ยงExample

use tauri_sys::window::current_window;

let win = current_window().await?;