stopAnalysis method

DriverBehaviourAnalysis? stopAnalysis()

Stop the current analysis and get its result.

Returns

The analysis result if the analysis was stopped successfully, null otherwise.

Throws

  • An exception if it fails.

Implementation

DriverBehaviourAnalysis? stopAnalysis() {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'DriverBehaviour',
    'stopAnalysis',
  );

  if (resultString['result'] == -1 || resultString['gemApiError'] != 0) {
    return null;
  }

  return DriverBehaviourAnalysis.init(resultString['result']);
}