XRSPACE Developer Console

API - XREvent

Contents

Enum

  • public enum XRStatus

Description Indicates the state of event.

None

0

INITIALIZE_FAILED

1

DEVICE_CONNECTED

2

DEVICE_DISCONNECTED

3

LOST_TRACKING

4

VR_LESS_FEATURE_COUNT

5

VR_LOW_LIGHT

6

VR_BRIGHT_LIGHT

7

VR_CAMERA_CALIBRATION

8

VR_UNKNOWN

9

Event

  • public static event Action OnBeginVR

Description Trigger when application starts/resumes and VR mode’s ready, the system will start stereo rendering.


  • public static event Action OnBoundaryCollision

Description Trigger when boundary collision is detected.


  • public static event Action<bool> OnBoundaryCollisionChange

Description Trigger when the boundary collision is changed.

  • True: Trigger when the boundary collision is detected.

  • False: Trigger when the boundary collision is removed.


  • public static event Action<XRStatus> OnCameraBlock

Description Trigger when 6GoF stop working.


  • public static event Action<XRStatus> OnCameraUnBlock

Description Trigger when OnCameraBlock is release.


public static event Action<XRDeviceType, XRStatus> **OnDeviceStateChange*

Description Trigger when device state changed.


  • public static event Action OnEndVR

Description Trigger when VR mode’s pause, stop stereo rendering.


  • public static event Action OnRecenterTrackingBefore

Description Trigger before device recenter.


  • public static event Action OnRecenterTrackingFinish

Description Trigger when device recenter finish.


  • public static event Action<XRStatus> OnSDKError

Description Trigger when initialized failed.


  • public static event Action<bool> OnSeethroughVisibilityChange

Description Trigger when pass in/out see through.


  • public static event Action OnShutdown

Description Trigger when VR mode’s stop.


  • public static event Action OnSubmitFrame

Description Triggrt when submit stereo right and left image to display.


  • public static event Action<bool> OnSystemMenuVisibilityChange

Description Trigger when menu open/close.