enum SessionState : Enum<SessionState>
| Member | Description |
|---|---|
UNKNOWN |
Initial unknown state. This is the default state before the session is properly initialized.
|
IDLE |
Session is idle and not ready to render. The runtime is not presenting frames to the display. This is typically the state when the session is first created or after it has stopped.
|
READY |
Session is ready to begin. The application may call xrBeginSession at this point to transition to rendering states.
|
SYNCHRONIZED |
Session is synchronized with the runtime. The session has begun and the runtime is preparing to present frames, but they may not yet be visible to the user.
|
VISIBLE |
Session is visible but may not have input focus. The application's content is visible to the user but the application may not be receiving input.
|
FOCUSED |
Session has input focus and is fully active. This is the primary running state where the application should be rendering frames and processing input.
|
STOPPING |
Session is stopping. The runtime has requested that the application stop rendering. The application should call xrEndSession.
|
EXITING |
Session is exiting. The session is in the process of terminating and will soon be destroyed.
|
LOSS_PENDING |
Session loss is pending. The runtime has encountered an issue and the session will soon be lost. The application should prepare for the session to be destroyed.
|
value
: Int
[Get] |
Integer value corresponding to the native XrSessionState
Signature
val value: Int |
fromValue
(
value
)
|
Converts an integer value to its corresponding SessionState enum.
Signature
fun fromValue(value: Int): SessionState Parameters
value:
Int
|