Event list

Group

Event

Method name

Description

Group

Event

Method name

Description

ADAS events

Harsh movement

AdasController.AccelerometerListener.onHarshMovement()

Notifies harsh acceleration/deceleration has been detected. Check out AdasController.Parameters to enable/disable detection and tune detection parameters.

Forward collision warning

AdasController.ForwardCollisionWarningListener.onForwardCollisionWarning()

Emits when AdasController generates forward collision warning. Check out AdasController.Parameters to enable/disable detection and tune detection parameters.

Lane departure

AdasController.LaneDepartureWarningListener.onLaneDepartureWarning(AdasController.LaneDepartureDirection direction)

Emits when AdasController detects the vehicle starts leaving the lane. Check out AdasController.Parameters to enable/disable detection and tune detection parameters.

Speed limit sign detected

AdasController.SpeedSignDetectionListener.onSpeedSignDetected(AdasController.SpeedSignInfo info)

Emits when AdasController detects a speed limit sign. Check out AdasController.Parameters to enable/disable detection and tune detection parameters.

Location and map-related events

Day-night change

DashcamSdk.DayNightChangeListener.onDayNightChanged(boolean isNight)

Emits at the time of sunrise/sunset at the current coordinates.

Country change

DashcamSdk.PositionListener.onCurrentCountryChanged(java.lang.String countryIso3Code)

Emits when the vehicle crosses the border of the current country.

Road change

DashcamSdk.PositionListener.onCurrentRoadNameChanged(java.lang.String roadName)

Emits when the current road changes.

GPS position change

DashcamSdk.PositionListener.onPositionChanged(android.location.Location position, android.location.Location snappedPosition)

Emits when the current GPS location changes.

Speed limit change

DashcamSdk.PositionListener.onSpeedLimitChanged(int speedLimit)

Emits when the current speed limit changes. The speed limit values are taken from the map data.

Moving started

DashcamSdk.PositionListener.onStartedMoving()

Emits when the SDK detects the vehicle starts moving.

Moving stopped

DashcamSdk.PositionListener.onStoppedMoving()

Emits when the SDK detects the vehicle stops moving.

Camera events

Camera initialised

CameraController.Listener.onCameraInitialized()

Emits after the camera has been initialised.

Camera error

CameraController.Listener.onError(CameraController.ErrorInfo errorInfo)

Emits if error occurs in the CameraController. Check out CameraController.ErrorInfo to get more information on possible errors.

Recording session started

CameraController.RecordingListener.onRecordingStarted(androidx.documentfile.provider.DocumentFile outputFile)

Emits when a new recording session has begun streaming video to a file on disk.

Video fragment recorded

CameraController.RecordingListener.onRecordingFragmentStopped(CameraController.RecordingStopReason reason, java.lang.String libraryItemId)

Emits when the data of the current video fragment has been completely flushed to the file on disk.

Recording session stopped

CameraController.RecordingListener.onRecordingStopped(CameraController.RecordingStopReason reason)

Emits when a recording session has completely stopped and all its data has been flushed to the file on disk.

Snapshot taken

CameraController.SnapshotListener.onSnapshotTaken(java.lang.String libraryItemId)

Emits when a snapshot (image) has been successfully saved on disk.

Snapshot failed

CameraController.SnapshotListener.onSnapshotFailed()

Emits if it was not possible to make a snapshot.