Skip to main content
API Reference com.nianticspatial.nsdk.dashcam

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 DashcamSession

Properties

NameTypeSummary
ardkHandleLong
-

Functions

NameTypeSummary
configurevoid
Configure the dashcam feature. Must be called while dashcam is stopped.
featureStatusFeatureStatus
Reports the current feature status.
getBufferInfoDashcamBufferInfo
Get information about the current buffer state.
onDestroyvoid
-
onInitvoid
-
saveAsyncResult<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.
startvoid
Start buffering frames. The dashcam will continuously capture and buffer sensor data from the frame pipeline.
stopvoid
Stop buffering frames. The buffer is cleared. Saving is not allowed while stopped.