Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.Dashcam

DashcamManager

↳ extends UnityEngine.MonoBehaviour

Declaration​

public class DashcamManager : MonoBehaviour

Summary​

MonoBehaviour that manages the NSDK dashcam feature lifecycle. Attach to a GameObject in your scene to enable continuous frame buffering with the ability to save the buffer to a V2 sequence on demand.


Properties​

NameTypeSummary
readonly IsRunningbool
Whether the dashcam is currently buffering frames.

Methods​

NameTypeSummary
ApplyConfigurationvoid
Apply the current configuration to the native dashcam.
Must be called while the dashcam is stopped.
GetBufferInfoDashcamBufferInfo
Get the current buffer state.
SetConfigurationvoid
Update configuration values from script. Call ApplyConfiguration
afterwards (while stopped) to push them to native.
StartBufferingvoid
Start buffering frames.
StopBufferingvoid
Stop buffering frames. Buffer is cleared.
Saving is not allowed while stopped.
async TriggerSaveAsyncTask<DashcamSaveResult>
Trigger a save of the current buffer to disk as a V2 sequence and
await the result. The dashcam continues buffering during the save.