DashcamSession
↳ extends SessionBase
A session for the dashcam feature. The dashcam continuously captures and buffers sensor data from the frame pipeline in a circular buffer. When triggered, the buffer contents are saved to disk as a V2 sequence. ## Basic Usage
kotlin val dashcam = nsdkSession.dashcam.acquire() dashcam.configure(DashcamConfig(framerate = 5, maxBufferSeconds = 60)) dashcam.start() // ... later ... val result = dashcam.save() dashcam.close() Declaration
class DashcamSessionProperties
| Name | Type | Summary |
|---|---|---|
| ardkHandle | Long | - |
Functions
| Name | Type | Summary |
|---|---|---|
| configure | void | Configure the dashcam feature. Must be called while dashcam is stopped. |
| featureStatus | FeatureStatus | Reports the current feature status. |
| getBufferInfo | DashcamBufferInfo | Get information about the current buffer state. |
| onDestroy | void | - |
| onInit | void | - |
| save | AsyncResult<DashcamSaveResult, DashcamSaveError> | Asynchronously saves the current buffer and polls until the operation is complete. This function initiates the save operation and then suspends until the save process finishes, either with a success, a failure, or a timeout. |
| start | void | Start buffering frames. The dashcam will continuously capture and buffer sensor data from the frame pipeline. |
| stop | void | Stop buffering frames. The buffer is cleared. Saving is not allowed while stopped. |