importLog method

GemError importLog(
  1. String logPath, {
  2. String? importedFileName,
})

Imports a log file (GPX, NMEA, KML) and stores it in the logs folder in GM format.

If importedFileName is omitted the source filename is used. The returned GemError indicates the outcome of the import.

Parameters

  • logPath: The path to the file to import.
  • importedFileName: Optional name to store the imported log as.

Returns

See also:

  • exportLog — Exports a recorded log to a different file format (for example GPX or CSV).

Implementation

GemError importLog(final String logPath, {final String? importedFileName}) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RecorderBookmarks',
    'importLog',
    args: <String, Object?>{
      'logPath': logPath,
      'importedFileName': importedFileName,
    },
  );

  return GemErrorExtension.fromCode(resultString['result']);
}