API reference

DeviceSessionState Enum

Extends Equatable, Sendable
Represents the current state of a DeviceSession.

Signature

enum DeviceSessionState: Equatable, Sendable

Enumeration Constants

MemberDescription
idle
The session has been created but DeviceSession.start() has not been called yet.
starting
The session is connecting to the device.
started
The session is connected and active.
paused
The session is temporarily paused (device-initiated, e.g. cap-touch).
stopping
The session is stopping and cleaning up resources.
stopped
The session has ended. A new session must be created via WearablesInterface.createSession(deviceSelector:).

Properties

description : String
[Get]
Provides a human-readable description of the session state.