Skip to content
Tauri 中文网

@tauri-apps/plugin-window-state

Enumerations

StateFlags

Enumeration Members

ALL
ALL: 63;

Source: undefined

DECORATIONS
DECORATIONS: 16;

Source: undefined

FULLSCREEN
FULLSCREEN: 32;

Source: undefined

MAXIMIZED
MAXIMIZED: 4;

Source: undefined

POSITION
POSITION: 2;

Source: undefined

SIZE
SIZE: 1;

Source: undefined

VISIBLE
VISIBLE: 8;

Source: undefined

Functions

filename()

function filename(): Promise<string>

Get the name of the file used to store window state.

Returns

Promise<string>

Source: undefined


restoreState()

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

Restore the state for the specified window from disk.

Parameters

ParameterType
labelstring
flagsStateFlags

Returns

Promise<void>

Source: undefined


restoreStateCurrent()

function restoreStateCurrent(flags): Promise<void>

Restore the state for the current window from disk.

Parameters

ParameterType
flagsStateFlags

Returns

Promise<void>

Source: undefined


saveWindowState()

function saveWindowState(flags): Promise<void>

Save the state of all open windows to disk.

Parameters

ParameterType
flagsStateFlags

Returns

Promise<void>

Source: undefined


Tauri 中文网 - 粤ICP备13048890号