Returns a string describing the specific operating system in use. The value is set at compile time. Possible values are 'linux', 'macos', 'ios', 'freebsd', 'dragonfly', 'netbsd', 'openbsd', 'solaris', 'android', 'windows'
'linux'
'macos'
'ios'
'freebsd'
'dragonfly'
'netbsd'
'openbsd'
'solaris'
'android'
'windows'
import { platform } from '@tauri-apps/plugin-os';const platformName = platform(); Copy
import { platform } from '@tauri-apps/plugin-os';const platformName = platform();
2.0.0
Returns a string describing the specific operating system in use. The value is set at compile time. Possible values are
'linux'
,'macos'
,'ios'
,'freebsd'
,'dragonfly'
,'netbsd'
,'openbsd'
,'solaris'
,'android'
,'windows'