API reference

DeviceSessionState Enum

Represents the current state of a Meta Wearables device session.
A device session manages the connection between the application and a specific Meta Wearables device. The session progresses through these states during its lifecycle:
DeviceSessionState.STOPPED is a terminal state. Once a session reaches DeviceSessionState.STOPPED, a new session must be created via Wearables.createSession to re-establish the connection.
Use Session.state to observe state transitions and respond to connectivity changes in your application.

See Also

Signature

enum DeviceSessionState : Enum<DeviceSessionState> 

Enumeration Constants

MemberDescription
IDLE
The session has been created but Session.start has not yet been called.
STARTING
Session.start has been called and the session is connecting to the device.
STARTED
The session is active and connected to a Meta Wearables device.
PAUSED
The session is temporarily paused (e.g., device entered low-power mode).
STOPPING
Session.stop has been called and the session is cleaning up resources.
STOPPED
The session is inactive and not connected to any device. This is a terminal state — the session cannot be restarted. Create a new session via Wearables.createSession if needed.