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