isDesktop static method

bool isDesktop()

Returns true if running on a desktop platform (Windows, macOS, or Linux).

Implementation

static bool isDesktop() {
  return isWindows() || isMacOS() || isLinux();
}