• Remove a listener for when an XR session starts

    Parameters

    • fn: (evt: XRSessionEventArgs) => void

      The function to remove from the listeners

    Returns void

    const myFunction = (evt) => {
    console.log("XR session started", evt);
    };
    onXRSessionStart(myFunction);
    offXRSessionStart(myFunction);