• Remove a listener for when an XR session ends

    Parameters

    • fn: ((evt) => void)

      The function to remove from the listeners

        • (evt): void
        • Parameters

          • evt: XRSessionEventArgs

          Returns void

    Returns void

    Example

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

Generated using TypeDoc