stopAnalysis method
Stop the current analysis and return the completed analysis.
Returns
- A DriverBehaviourAnalysis instance when the analysis completed successfully and contains valid data, or null if the analysis failed or no valid data is available. Always check DriverBehaviourAnalysis.isValid before using the returned analysis.
Also see:
- DriverBehaviour.startAnalysis - To start a new analysis session.
- DriverBehaviour.getOngoingAnalysis - To get the current ongoing analysis.
Implementation
DriverBehaviourAnalysis? stopAnalysis() {
final OperationResult resultString = objectMethod(
pointerId,
'DriverBehaviour',
'stopAnalysis',
);
if (resultString['result'] == -1 || resultString['gemApiError'] != 0) {
return null;
}
return DriverBehaviourAnalysis.init(resultString['result']);
}