DriverBehaviour class Driver Behaviour

Manager for driver behaviour analysis: start/stop sessions and retrieve results.

Use DriverBehaviour.startAnalysis to begin a session and DriverBehaviour.stopAnalysis to finish it and obtain a DriverBehaviourAnalysis. The instance must be created with a configured DataSource and a flag indicating whether map-matching should be applied to position data.

Constructors

DriverBehaviour({required DataSource dataSource, required bool useMapMatch})
Creates a new driver behaviour instance.
factory

Properties

allDriverBehaviourAnalyses List<DriverBehaviourAnalysis>
Retrieve all stored driver behaviour analyses recorded on the device.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasRegisteredAutoReleaseObject bool
getter/setter pairinherited
instantaneousScores DrivingScores?
Retrieve current instantaneous driving scores for real-time feedback.
no setter
lastAnalysis DriverBehaviourAnalysis?
Get the most recently completed analysis.
no setter
ongoingAnalysis DriverBehaviourAnalysis?
Retrieve the currently ongoing analysis (if any).
no setter
pointerId int
The pointer ID of the native object
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes the native object.
inherited
eraseAnalysesOlderThan(DateTime time) → void
Erase stored analyses older than the specified reference time.
getAllDriverBehaviourAnalyses() List<DriverBehaviourAnalysis>
Retrieve all stored driver behaviour analyses recorded on the device.
getCombinedAnalysis(DateTime startTime, DateTime endTime) DriverBehaviourAnalysis?
Combine analyses from multiple sessions within a time range into a single aggregated DriverBehaviourAnalysis.
getInstantaneousScores() DrivingScores?
Retrieve current instantaneous driving scores for real-time feedback.
getLastAnalysis() DriverBehaviourAnalysis?
Get the most recently completed analysis.
getOngoingAnalysis() DriverBehaviourAnalysis?
Retrieve the currently ongoing analysis (if any).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
startAnalysis() bool
Start a new driver behaviour analysis session.
stopAnalysis() DriverBehaviourAnalysis?
Stop the current analysis and return the completed analysis.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited