Skip to content

@tauri-apps/plugin-window-state

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.

Promise<string>


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.

Parameter Type
label string
flags? StateFlags

Promise<void>


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.

Parameter Type
flags? StateFlags

Promise<void>


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.

Parameter Type
flags? StateFlags

Promise<void>

Defined in: plugins/window-state/guest-js/index.ts:8

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