API reference

Build Class

Information about the OS build.

Inner Class

Version Class

Version information for the current OS build.

Static Methods

getApiVersion ()
Gets the number of the Meta VR OS API version currently available on the device.
This can be used to adjust behavior based on API version, enabling client code to simultaneously achieve compatibility with specific API version(s).
Signature
static int metavr.os.Build.Version.getApiVersion()
Returns
int
getDisplayName ()
Gets the non-localizable string representing the user visible version name of the OS, e.g.
"1.2.3", "4.5.6.hotfix7", or "bananas".
NEVER attempt to parse this value or use it in any conditional logic such as string comparison. This string is an opaque value intended for the sole purpose of displaying to users the "version name" assigned to this version of the OS. The value of this string should be considered arbitrary. Do not assume that its value has any particular structure, or that values assigned to different releases can be somehow ordered.
To query the version number of the Meta VR OS API version currently available on the device, use getApiVersion().
Signature
static String metavr.os.Build.Version.getDisplayName()
Returns
String