exportLog method

GemError exportLog(
  1. String logPath,
  2. FileType type, {
  3. String? exportedFileName,
})

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

When exportedFileName is omitted the original log name is used. The operation returns a GemError that indicates whether the export succeeded or failed.

Parameters

  • logPath: The source log path to export.
  • type: The FileType representing the export format.
  • exportedFileName: Optional custom output filename (without path).

Returns

See also:

  • importLog — Imports a log file (GPX, NMEA, KML) and stores it in GM format.

Implementation

GemError exportLog(
  final String logPath,
  final FileType type, {
  final String? exportedFileName,
}) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'RecorderBookmarks',
    'exportLog',
    args: <String, Object?>{
      'logPath': logPath,
      'type': type.id,
      'exportedFileName': exportedFileName,
    },
  );
  return GemErrorExtension.fromCode(resultString['result']);
}