Skip to content

PlatformDetection

The PlatformDetection API returns an Enum representing the user’s platform. It will accurately detect:

  • Windows

  • Windows (UWP)

  • Linux (via Sober)

  • MacOS (OSX)

  • Android

  • iOS

  • Xbox One

  • PS5

  • PS4

  • MetaOS

Returns the detected platform. See above for supported detections. If detection is unsuccessful, Enum.Platform.None will be returned.

Enum.Platform