exportLog method
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
- GemError.success on success.
- GemError.exist if the exported file already exists.
- GemError.general on general failure.
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']);
}