getInstantaneousScores method
Get the instantaneous scores (related to the ongoing analysis).
Returns
The instantaneous scores.
Throws
- An exception if it fails.
Implementation
DrivingScores? getInstantaneousScores() {
final OperationResult resultString = objectMethod(
_pointerId,
'DriverBehaviour',
'getInstantaneousScores',
);
if (resultString['result'] == -1 || resultString['gemApiError'] != 0) {
return null;
}
return DrivingScores.init(resultString['result']);
}