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

DashcamConfig

Configuration parameters for the dashcam feature. Non-zero values override defaults. Zero-valued fields use built-in defaults. ## Basic Usage kotlin val config = DashcamConfig( framerate = 5, maxBufferSeconds = 60, maxBufferMemoryMb = 128 ) dashcamSession.configure(config)

Declaration

class DashcamConfig

Properties

NameTypeSummary
basePathString?
Base path for writing dashcam data. If an absolute path is provided, that directory must be writable. If left null, ARDK uses the public application path. Default: null
framerateInt
Target FPS for buffering frames. The dashcam will subsample the source frame stream to this rate. If set to 0, defaults to 5 FPS. Default: 0 (defaults to 5 FPS)
maxBufferMemoryMbInt
Maximum memory budget for the circular buffer in megabytes. When the buffer exceeds this size, the oldest frames are evicted. Whichever limit (time or memory) is hit first triggers eviction. If set to 0, defaults to 128 MB. Default: 0 (defaults to 128 MB)
maxBufferSecondsInt
Maximum number of seconds of data to keep in the circular buffer. When the buffer exceeds this duration, the oldest frames are evicted. If set to 0, defaults to 60 seconds. Default: 0 (defaults to 60 seconds)