• Remove a listener for when an XR session starts

    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 started", evt);
    };
    onXRSessionStart(myFunction);
    offXRSessionStart(myFunction);

Generated using TypeDoc