Enum XrSessionState
The XrSessionState enumerates the possible session lifecycle states.
Namespace: VIVE.OpenXR
Assembly: VIVE.OpenXR.dll
Syntax
public enum XrSessionState
Fields
Name | Description |
---|---|
XR_SESSION_STATE_EXITING | The application should end its XR experience and not automatically restart it. |
XR_SESSION_STATE_FOCUSED | The application has synced its frame loop with the runtime, is visible to the user and can receive XR input. |
XR_SESSION_STATE_IDLE | The initial state after calling xrCreateSession or returned to after calling xrCreateSession. |
XR_SESSION_STATE_LOSS_PENDING | The session is in the process of being lost. The application should destroy the current session and can optionally recreate it. |
XR_SESSION_STATE_MAX_ENUM | |
XR_SESSION_STATE_READY | The application is ready to call |
XR_SESSION_STATE_STOPPING | The application should exit its frame loop and call |
XR_SESSION_STATE_SYNCHRONIZED | The application has synced its frame loop with the runtime but is not visible to the user. |
XR_SESSION_STATE_UNKNOWN | An unknown state. The runtime must not return this value in an XrEventDataSessionStateChanged event. |
XR_SESSION_STATE_VISIBLE | The application has synced its frame loop with the runtime and is visible to the user but cannot receive XR input. |