PlatformOS

View source

Identifies the operating-system categories used by a Device resource.

Use these values to interpret a device’s detected platform. Unknown represents a device whose platform is not one of the supported categories.

Examples

import { Device, PlatformOS } from '@wimaengine/device'

const device = new Device()
if (device.platform === PlatformOS.Unknown) {
  console.log('Platform was not recognized')
}

Variants


Unknown

View source

No supported operating-system category was detected (0).

This is the default platform on a new Device.