# Enum.VRSessionState

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/VRSessionState/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/VRSessionState

The lifecycle state of the active VR session, as reported by the `VRSessionState` property of [`VRService`](https://rapi.sleaze.dev/classes/VRService.md).

## Items

| Name | Value | Description |
| --- | --- | --- |
| `Undefined` | 0 | The VR session state is unknown or has not yet been established; the default value of `VRSessionState`. |
| `Idle` | 1 | The VR headset is connected and ready but is not yet presenting frames to the user. |
| `Visible` | 2 | The VR session is rendering frames visible to the user but does not yet have XR input focus; haptic feedback is available. |
| `Focused` | 3 | The VR session has full XR input focus and is rendering visible frames; haptic feedback is available. |
| `Stopping` | 4 | The VR session is in the process of stopping and will transition to an inactive state. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [VRService](https://rapi.sleaze.dev/classes/VRService.md): property `VRSessionState`
