importLog method
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
- GemError.success when import succeeds.
- GemError.exist if a file with the target name already exists.
- GemError.notSupported if the source format is unsupported.
- GemError.general on other failures.
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']);
}