Skip to main content
API Reference NSDK NSDKDashcamSession

Configuration

Configuration for the dashcam feature.

Declaration

struct Configuration

Constructors

init(framerate: Int = 0, maxBufferSeconds: Int = 0, maxBufferMemoryMB: Int = 0, basePath: String? = nil)

Summary

Initializes a new dashcam configuration with provided settings.


Properties

NameTypeSummary
var basePathString?
Base path for writing dashcam data.
If an absolute path is provided, that directory must be writable.
If left nil, NSDK uses the public application path.
var framerateInt32
Target FPS for buffering frames.
The dashcam will subsample the source frame stream to this rate.
If set to 0, defaults to 5 FPS.
var maxBufferMemoryMBInt32
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.
var maxBufferSecondsInt32
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.