@tauri-apps/plugin-window-state
Functions
Section titled “Functions”filename()
Section titled “filename()”function filename(): Promise<string>;Defined in: plugins/window-state/guest-js/index.ts:44
Get the name of the file used to store window state.
Returns
Section titled “Returns”restoreState()
Section titled “restoreState()”function restoreState(label: string, flags?: StateFlags): Promise<void>;Defined in: plugins/window-state/guest-js/index.ts:28
Restore the state for the specified window from disk.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
label |
string |
flags? |
StateFlags |
Returns
Section titled “Returns”restoreStateCurrent()
Section titled “restoreStateCurrent()”function restoreStateCurrent(flags?: StateFlags): Promise<void>;Defined in: plugins/window-state/guest-js/index.ts:38
Restore the state for the current window from disk.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
flags? |
StateFlags |
Returns
Section titled “Returns”saveWindowState()
Section titled “saveWindowState()”function saveWindowState(flags?: StateFlags): Promise<void>;Defined in: plugins/window-state/guest-js/index.ts:21
Save the state of all open windows to disk.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
flags? |
StateFlags |
Returns
Section titled “Returns”Enumerations
Section titled “Enumerations”StateFlags
Section titled “StateFlags”Defined in: plugins/window-state/guest-js/index.ts:8
Enumeration Members
Section titled “Enumeration Members”| Enumeration Member | Value | Defined in |
|---|---|---|
ALL |
63 |
plugins/window-state/guest-js/index.ts:15 |
DECORATIONS |
16 |
plugins/window-state/guest-js/index.ts:13 |
FULLSCREEN |
32 |
plugins/window-state/guest-js/index.ts:14 |
MAXIMIZED |
4 |
plugins/window-state/guest-js/index.ts:11 |
POSITION |
2 |
plugins/window-state/guest-js/index.ts:10 |
SIZE |
1 |
plugins/window-state/guest-js/index.ts:9 |
VISIBLE |
8 |
plugins/window-state/guest-js/index.ts:12 |
© 2026 Tauri Contributors. CC-BY / MIT