TransportSessionApi
Last updated
Last updated
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.
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 .
Recorded sessions are stored on the device until the time that you request their deletion. See .
Note: calling this method on an uninitialized SDK will throw an .
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 .
Note: calling this method on an uninitialized SDK will throw an .
getAvailableTransportSessions()
Returns a list of recorded and completed transport sessions.
isTransportSessionRecordingEnabled()
Returns whether transport session recording is enabled.
setTransportSessionListener()
Sets a listener that will be invoked to deliver transport sessions. A session is delivered after a transport ends.
listener
A TransportSessionListener to receive transport sessions, or null
to remove a previously set listener.
deleteAllTransportSessions()
Deletes all recorded transport sessions.
deleteTransportSession()
Deletes the transport session with the specified ID.
sessionId
The ID of the session to delete.
Note: calling this method on an uninitialized SDK will throw an .
Note: calling this method on an uninitialized SDK will throw an .
Transport sessions are stored on the device until the time that you request their deletion. See .
Note: calling this method on an uninitialized SDK will throw an .
Recorded sessions are stored on the device. It is your responsibility to call this method, or , to request their deletion, when you no longer need them.
Note: calling this method on an uninitialized SDK will throw an .
Recorded sessions are stored on the device. It is your responsibility to call this method, or , to request their deletion, when you no longer need them.
Note: calling this method on an uninitialized SDK will throw an .