Returns the current operating system type. Returns 'linux' on Linux, 'macos' on macOS, 'windows' on Windows, 'ios' on iOS and 'android' on Android.
'linux'
'macos'
'windows'
'ios'
'android'
import { type } from '@tauri-apps/plugin-os';const osType = type(); Copy
import { type } from '@tauri-apps/plugin-os';const osType = type();
2.0.0
Returns the current operating system type. Returns
'linux'
on Linux,'macos'
on macOS,'windows'
on Windows,'ios'
on iOS and'android'
on Android.