Skip to content

@tauri-apps/plugin-window-state

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

ALL: 63;

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

DECORATIONS: 16;

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

FULLSCREEN: 32;

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

MAXIMIZED: 4;

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

POSITION: 2;

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

SIZE: 1;

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

VISIBLE: 8;

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

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, flags?): 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?): 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?): 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>


© 2026 Tauri Contributors. CC-BY / MIT