Function session_cache_dir

Source
pub fn session_cache_dir() -> Option<PathBuf>
Expand description

Get the directory where this app can write to for this session that’s guaranteed to be stable between reloads of the same app. This is useful for emitting state like window position and size so the app can restore it when it’s next opened.

Note that this cache dir is really only useful for platforms that can access it. Web/Android don’t have access to this directory, so it’s not useful for them.

This is designed with desktop executables in mind.