@tauri-apps/plugin-window-state
Enumerations
StateFlags
Enumeration Members
ALL
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L15
DECORATIONS
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L13
FULLSCREEN
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L14
MAXIMIZED
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L11
POSITION
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L10
SIZE
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L9
VISIBLE
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L12
Functions
filename()
Get the name of the file used to store window state.
Returns
Promise
<string
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L44
restoreState()
Restore the state for the specified window from disk.
Parameters
Parameter | Type |
---|---|
label | string |
flags | StateFlags |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L28
restoreStateCurrent()
Restore the state for the current window from disk.
Parameters
Parameter | Type |
---|---|
flags | StateFlags |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L38
saveWindowState()
Save the state of all open windows to disk.
Parameters
Parameter | Type |
---|---|
flags | StateFlags |
Returns
Promise
<void
>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/window-state/guest-js/index.ts#L21
© 2024 Tauri Contributors. CC-BY / MIT