[ readonly ] os

Class: SwingUI.

Description:

Returns a short identifier of an operating system on current machine. Possible values: "windows", "linux", "darwin" (for Mac), "freebsd", "openbsd", "sunos", and "android".

Type: string

Examples:

Getting a short identifier of an operating system:

console.log(ui.os); // e.g., prints "windows"