uses-metavr-sdk manifest element. This is useful if your app has implicit dependencies on a specific Horizon OS version, such as attempting to launch a system package with an intent supported only in a newer Horizon OS version, or for multiplayer applications that want to ensure all players have the latest security updates.com.oculus.systemdriver.| Surface | API | Behavior |
|---|---|---|
Java or Kotlin | public static int metavr.os.Build.Version.getApiVersion() | Returns the Meta VR OS SDK API version available on the device. |
Native C or C++ | int32_t MvrOS_getVersion(void) in <metavr/versioning.h> | Returns the Meta VR OS SDK API version available on the device. |
Meta VR OS Utility Library for Java or Kotlin | public static boolean metavrx.os.MetaVrOsSdkVersion.isAtOrAbove(int) in com.meta.metavrx.util:util | Returns whether the API version available on the device is at or above the specified integer. |
AndroidManifest.xml file, as a child of your root <manifest> element. Replace [version] with your preferred Horizon OS version number, such as “83” or “205”.<metavr:uses-metavr-sdk metavr:minSdkVersion="[version]" metavr:targetSdkVersion="[version]" />
AndroidManifest.xml file, setting android:minSdkVersion on the uses-sdk element sets the minimum Android SDK API level that your app is compatible with. Your app cannot be distributed or installed onto devices running an Android SDK API level lower than this. See the android:minSdkVersion attribute in the Android documentation for details.com.oculus.supportedDevices sets the minimum Horizon OS version to the first version that supports that device.minSdkVersion:
