Returns current application state along with any extra data passed into method.
Optional
extra: objectExtra data to add to application state.
Passed in object with current application state.
Returns any stored save state by name.
Options.
Saved data set name.
The saved data set.
Removes and returns any application state by name.
Options.
Name to remove and retrieve.
Saved application data.
Restores a saved application state returning the data. Several optional parameters are available to control whether the restore action occurs silently (no store / inline styles updates), animates to the stored data, or simply sets the stored data. Restoring via AnimationAPI.to allows specification of the duration, easing, and interpolate functions along with configuring a Promise to be returned if awaiting the end of the animation.
Parameters
Optional
animateAnimate to restore data.
Optional
async?: booleanIf animating return a Promise that resolves with any saved data.
Optional
duration?: numberDuration in seconds.
Optional
ease?: FunctionEasing function.
Optional
interpolate?: FunctionInterpolation function.
Saved data set name.
Optional
remove?: booleanRemove data set.
Saved application data.
Saves current application state with the opportunity to add extra data to the saved state.
Options.
Optional
extra?: any[]Extra data to add to saved data.
name to index this saved data.
Current application data
Restores a saved application state returning the data. Several optional parameters are available to control whether the restore action occurs silently (no store / inline styles updates), animates to the stored data, or simply sets the stored data. Restoring via AnimationAPI.to allows specification of the duration, easing, and interpolate functions along with configuring a Promise to be returned if awaiting the end of the animation.
Note: If serializing application state any minimized apps will use the before minimized state on initial render of the app as it is currently not possible to render apps with Foundry VTT core API in the minimized state.
Saved data set name.
Optional
opts: { Optional parameters
When synchronous the application or Promise when animating resolving with application.
Provides the ability the save / restore application state for positional and UI state such as minimized status.
You can restore a saved state with animation; please see the options of ApplicationState.restore.