@tauri-apps/plugin-window-state
ALL: 63;
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L15
DECORATIONS: 16;
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L13
FULLSCREEN: 32;
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L14
MAXIMIZED: 4;
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L11
POSITION: 2;
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L10
SIZE: 1;
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L9
VISIBLE: 8;
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L12
function filename(): Promise<string>
获取用于存储窗口状态的文件名。
Promise
<string
>
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L44
function restoreState(label, flags?): Promise<void>
从磁盘恢复指定窗口的状态。
参数 | 类型 |
---|---|
标签 | 字符串 |
标志 ? | StateFlags |
Promise
<void
>
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L28
function restoreStateCurrent(flags?): Promise<void>
从磁盘恢复当前窗口的状态。
参数 | 类型 |
---|---|
标志 ? | StateFlags |
Promise
<void
>
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L38
function saveWindowState(flags?): Promise<void>
将所有打开的窗口状态保存到磁盘。
参数 | 类型 |
---|---|
标志 ? | StateFlags |
Promise
<void
>
源: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L21
© 2025 Tauri 贡献者。CC-BY / MIT