OptionalcenterShow window in the center of the screen..
OptionalxThe initial vertical position. Only applies if y is also set.
OptionalyThe initial horizontal position. Only applies if x is also set.
OptionalwidthThe initial width.
OptionalheightThe initial height.
OptionalminThe minimum width. Only applies if minHeight is also set.
OptionalminThe minimum height. Only applies if minWidth is also set.
OptionalmaxThe maximum width. Only applies if maxHeight is also set.
OptionalmaxThe maximum height. Only applies if maxWidth is also set.
OptionalpreventPrevent the window from overflowing the working area (e.g. monitor size - taskbar size)
on creation, which means the window size will be limited to monitor size - taskbar size
Can either be set to true or to a PreventOverflowMargin object to set an additional margin
that should be considered to determine the working area
(in this case the window size will be limited to monitor size - taskbar size - margin)
NOTE: The overflow check is only performed on window creation, resizes can still overflow
OptionalresizableWhether the window is resizable or not.
OptionaltitleWindow title.
OptionalfullscreenWhether the window is in fullscreen mode or not.
OptionalfocusWhether the window will be initially focused or not.
OptionaltransparentWhether the window is transparent or not.
Note that on macOS this requires the macos-private-api feature flag, enabled under tauri.conf.json > app > macOSPrivateApi.
WARNING: Using private APIs on macOS prevents your application from being accepted to the App Store.
OptionalmaximizedWhether the window should be maximized upon creation or not.
OptionalvisibleWhether the window should be immediately visible upon creation or not.
OptionaldecorationsWhether the window should have borders and bars or not.
OptionalalwaysWhether the window should always be on top of other windows or not.
OptionalalwaysWhether the window should always be below other windows.
OptionalcontentPrevents the window contents from being captured by other apps.
OptionalskipWhether or not the window icon should be added to the taskbar.
OptionalshadowOptionalthemeThe initial window theme. Defaults to the system theme.
Only implemented on Windows and macOS 10.14+.
OptionaltitleThe style of the macOS title bar.
OptionaltrafficThe position of the window controls on macOS.
Requires titleBarStyle: 'overlay' and decorations: true.
OptionalhiddenIf true, sets the window title to be hidden on macOS.
OptionaltabbingDefines the window tabbing identifier on macOS.
Windows with the same tabbing identifier will be grouped together. If the tabbing identifier is not set, automatic tabbing will be disabled.
OptionalmaximizableWhether the window's native maximize button is enabled or not. Defaults to true.
OptionalminimizableWhether the window's native minimize button is enabled or not. Defaults to true.
OptionalclosableWhether the window's native close button is enabled or not. Defaults to true.
OptionalparentSets a parent to the window to be created. Can be either a Window or a label of the window.
OptionalvisibleOptionalwindowWindow effects.
Requires the window to be transparent.
OptionalbackgroundOptionalbackgroundChange the default background throttling behaviour.
see https://github.com/tauri-apps/tauri/issues/5250#issuecomment-2569380578
OptionaljavascriptWhether we should disable JavaScript code execution on the webview or not.
Optionalallowon macOS and iOS there is a link preview on long pressing links, this is enabled by default. see https://docs.rs/objc2-web-kit/latest/objc2_web_kit/struct.WKWebView.html#method.allowsLinkPreview
OptionaldisableAllows disabling the input accessory view on iOS.
The accessory view is the view that appears above the keyboard when a text input element is focused. It usually displays a view with "Done", "Next" buttons.
Configuration for the window to create.
Since
1.0.0