public enum SensorSessionState
- Object
- Enum<SensorSessionState>
- SensorSessionState
ImplementsComparable<SensorSessionState>
The lifecycle of a
SensorSession.Enum constants
CONNECTING | Connecting and discovering services. |
STREAMING | Connected and subscribed; measurements are arriving. |
RECONNECTING | The link dropped and the session is trying to re-establish it. |
STOPPED | The session was stopped by the app. |
FAILED | The 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
CONNECTINGConnecting and discovering services.
STREAMING
STREAMINGConnected and subscribed; measurements are arriving.
RECONNECTING
RECONNECTINGThe 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
STOPPEDThe session was stopped by the app.
FAILED
FAILEDThe session ended with an error and will not recover.
Method details
values
public static SensorSessionState[] values()valueOf
public static SensorSessionState valueOf(String name)