public enum SensorSessionState

  1. Object
  2. Enum<SensorSessionState>
  3. SensorSessionState

ImplementsComparable<SensorSessionState>

The lifecycle of a SensorSession.

Enum constants

CONNECTINGConnecting and discovering services.
STREAMINGConnected and subscribed; measurements are arriving.
RECONNECTINGThe link dropped and the session is trying to re-establish it.
STOPPEDThe session was stopped by the app.
FAILEDThe session ended with an error and will not recover.

Methods

public static SensorSessionState[] values()
public static SensorSessionState valueOf(String name)

Inherited methods

Enum constant details

CONNECTING

CONNECTING
Connecting and discovering services.

STREAMING

STREAMING
Connected and subscribed; measurements are arriving.

RECONNECTING

RECONNECTING

The link dropped and the session is trying to re-establish it. Reached only when SensorSessionOptions.setAutoReconnect(boolean) is on; the session recovers on its own and returns to STREAMING.

Straps routinely drop out for a few seconds when a rider’s chest moves the sensor, so treat this as a transient display state rather than an error.

STOPPED

STOPPED
The session was stopped by the app.

FAILED

FAILED
The session ended with an error and will not recover.

Method details

values

public static SensorSessionState[] values()

valueOf

public static SensorSessionState valueOf(String name)