getOngoingAnalysis method
Retrieve the currently ongoing analysis (if any).
Returns
- A DriverBehaviourAnalysis instance representing the ongoing analysis, or null if no valid analysis is in progress.
Also see:
- DriverBehaviour.startAnalysis - To start a new analysis session.
- DriverBehaviour.stopAnalysis - To stop the analysis and retrieve results.
- getLastAnalysis - To get the most recently completed analysis.
Implementation
DriverBehaviourAnalysis? getOngoingAnalysis() {
final OperationResult resultString = objectMethod(
pointerId,
'DriverBehaviour',
'getOngoingAnalysis',
);
if (resultString['result'] == -1 || resultString['gemApiError'] != 0) {
return null;
}
return DriverBehaviourAnalysis.init(resultString['result']);
}