Interface INeedleXRSessionEventReceiver

interface INeedleXRSessionEventReceiver {
    get activeAndEnabled(): boolean;
    onBeforeXR?(mode: XRSessionMode, args: XRSessionInit): void;
    onEnterXR?(args: NeedleXREventArgs): void;
    onLeaveXR?(args: NeedleXREventArgs): void;
    onUpdateXR?(args: NeedleXREventArgs): void;
    onXRControllerAdded?(args: NeedleXRControllerEventArgs): void;
    onXRControllerRemoved?(args: NeedleXRControllerEventArgs): void;
    supportsXR?(mode: XRSessionMode): boolean;
}

Hierarchy

Accessors

  • get activeAndEnabled(): boolean
  • Returns boolean

Methods

  • Called before requesting a XR session

    Parameters

    • mode: XRSessionMode
    • args: XRSessionInit

    Returns void

  • Parameters

    • mode: XRSessionMode

    Returns boolean