TransportSessionApi
Use this API to subscribe to, and retrieve transport sessions. A transport session contains information about a completed transport, such as the transport mode and the raw sensor data used during it classification.
TransportSessionApi API
enableTransportSessionRecording()
enableTransportSessionRecording()
Enables transport session recording.
This setting is persistent across app restarts, so you only need to enable session recording once. Note however that the setting is reset to 'disabled' after an SDK reset. See reset.
Recorded sessions are stored on the device until the time that you request their deletion. See
deleteTransportSession(String)
.Note: calling this method on an uninitialized SDK will throw an SdkException.
disableTransportSessionRecording()
disableTransportSessionRecording()
Disables transport session recording.
This setting is persistent across app restarts, so you only need to disable session recording once.
If you no longer need session recording, make sure to delete previously recorded sessions if you no longer need them. See
deleteAllTransportSessions()
.Note: calling this method on an uninitialized SDK will throw an SdkException.
getAvailableTransportSessions()
getAvailableTransportSessions()
Returns a list of recorded and completed transport sessions.
Note: calling this method on an uninitialized SDK will throw an SdkException.
isTransportSessionRecordingEnabled()
isTransportSessionRecordingEnabled()
Returns whether transport session recording is enabled.
Note: calling this method on an uninitialized SDK will throw an SdkException.
setTransportSessionListener()
setTransportSessionListener()
Sets a listener that will be invoked to deliver transport sessions. A session is delivered after a transport ends.
Transport sessions are stored on the device until the time that you request their deletion. See
deleteTransportSession(String)
.Note: calling this method on an uninitialized SDK will throw an SdkException.
Parameters | |
---|---|
listener | A TransportSessionListener to receive transport sessions, or |
deleteAllTransportSessions()
deleteAllTransportSessions()
Deletes all recorded transport sessions.
Recorded sessions are stored on the device. It is your responsibility to call this method, or
deleteTransportSession(String)
, to request their deletion, when you no longer need them.Note: calling this method on an uninitialized SDK will throw an SdkException.
deleteTransportSession()
deleteTransportSession()
Deletes the transport session with the specified ID.
Recorded sessions are stored on the device. It is your responsibility to call this method, or
deleteAllTransportSessions()
, to request their deletion, when you no longer need them.Note: calling this method on an uninitialized SDK will throw an SdkException.
Parameters | |
---|---|
sessionId | The ID of the session to delete. |
Last updated