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
Functions
Section titled “Functions”Detect
Section titled “Detect”Returns the detected platform. See above for supported detections. If detection is unsuccessful, Enum.Platform.None will be returned.
Returns
Section titled “Returns”Enum.Platform