API reference

HorizonOsDetector Class

Detector for whether we're running on Horizon OS.
May not detect Quest 1 running older OS versions, or devices predating Quest 1.
Can be used on cross-platform code running on both Horizon OS devices and other operating systems in order to gate logic specific to Horizon OS.

Static Methods

isOnHorizonOs ( context )
Check whether we're running on Horizon OS.
May not detect Quest 1 running older OS versions, or devices predating Quest 1.
Signature
static boolean metavrx.os.HorizonOsDetector.isOnHorizonOs(Context context)
Parameters
context: Context
Returns
boolean  Whether Horizon OS is detected