跳到内容
Tauri

@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