Saltar al contenido

@tauri-apps/plugin-window-state

ALL: 63;

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L15

DECORATIONS: 16;

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L13

FULLSCREEN: 32;

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L14

MAXIMIZED: 4;

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L11

POSITION: 2;

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L10

SIZE: 1;

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L9

VISIBLE: 8;

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L12

function filename(): Promise<string>

Obtén el nombre del archivo utilizado para guardar el estado de la ventana.

Promise<string>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L44


function restoreState(label, flags?): Promise<void>

Restaura el estado de la ventana especificada desde el disco.

Parámetro Tipo
label string
flags? StateFlags

Promise<void>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L28


function restoreStateCurrent(flags?): Promise<void>

Restaura el estado de la ventana actual desde el disco.

Parámetro Tipo
flags? StateFlags

Promise<void>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L38


function saveWindowState(flags?): Promise<void>

Guarda el estado de todas las ventanas abiertas en el disco.

Parámetro Tipo
flags? StateFlags

Promise<void>

Origen: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L21


© 2026 Colaboradores de Tauri. CC-BY / MIT