• Remove a listener for when an XR session ends

    Parameters

    • fn: ((evt: XRSessionEventArgs) => void)

      The function to remove from the listeners

        • (evt): void
        • Parameters

          • evt: XRSessionEventArgs

          Returns void

    Returns void

    const myFunction = (evt) => {
    console.log("XR session ended", evt);
    };
    onXRSessionEnd(myFunction);
    offXRSessionEnd(myFunction);