Skip to main content

xrtrackingstatus

Description​

This event is emitted by xrweb when XR8.XrController is loaded and any time tracking status or reason changes.

xrtrackingstatus : { status, reason }

PropertyDescription
statusOne of 'LIMITED' or 'NORMAL'.
reasonOne of 'INITIALIZING' or 'UNDEFINED'.

Example​

const updateScene = ({detail}) => {
const {status, reason} = detail
if (status === 'NORMAL') {
// Show scene
}
}
this.el.sceneEl.addEventListener('xrtrackingstatus', updateScene)