Added the os.arSupported() and os.vrSupported() functions to query device support for AR and VR respectively. Both of these are promises and must be awaited.
const arSupported = await os.arSupported();
if (arSupported) {
//...
}
const vrSupported = await os.vrSupported();
if (vrSupported) {
//...
}
:rocket: Improvements
Added the
os.arSupported()
andos.vrSupported()
functions to query device support for AR and VR respectively. Both of these are promises and must be awaited.Added shouts for entering and exiting AR and VR:
@onEnterAR
- Called when AR has been enabled.@onExitAR
- Called when AR has been disabled.@onEnterVR
- Called when VR has been enabled.@onExitVR
- Called when VR has been disabled.