SessionState Enum
Represents the current state of a device session in the Meta Wearables SDK.
This enum tracks the lifecycle of internal sessions used for device communication. Sessions transition between states as the device connects, streams data, pauses, or disconnects. Observe state changes through Wearables.getDeviceSessionState to respond to device connectivity and session lifecycle events.
enum SessionState : Enum<SessionState>
| Member | Description |
|---|
IDLE |
STOPPED |
The session is not active and not attempting to connect to the device.
|
RUNNING |
The session is actively running and processing data from the connected device.
|
PAUSED |
The session is temporarily paused but maintains its connection to the device.
|