Expand description
Provides operating system-related utility methods and properties.
The APIs must be added to tauri.allowlist.os in tauri.conf.json:
{
"tauri": {
"allowlist": {
"os": {
"all": true, // enable all Os APIs
}
}
}
}
It is recommended to allowlist only the APIs you use for optimal bundle size and security.
Enums§
Functions§
- Returns the operating system CPU architecture for which the tauri app was compiled.
- Returns a string identifying the operating system platform. The value is set at compile time.
- Returns the operating system’s default directory for temporary files.
- Returns a string identifying the kernel version.