WindowBuild

Function WindowBuild 

Source
pub fn WindowBuild(
    Application: &mut App,
    LocalhostUrl: String,
) -> WebviewWindow<Wry>
Expand description

Creates and configures the main application window.

§Arguments

  • Application - The Tauri application instance
  • LocalhostUrl - The localhost URL for the webview content

§Returns

A configured WebviewWindow<Wry> instance.

§Platform-Specific Behavior

  • Windows/macOS/Linux: Sets title, maximized state, no decorations, and shadow effect
  • Debug builds: Automatically opens DevTools