importLog method

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

Import a log file in GM format.

Supported file formats include: GPX, NMEA, KML. If the name of the exported file is not specified, the log name will be used.

Parameters

  • IN logPath The path for the file to be imported.
  • IN importedFileName The imported file name.

Returns

Throws

  • An exception if it fails

Implementation

GemError importLog(final String logPath, {final String? importedFileName}) {
  final String resultString = GemKitPlatform.instance.callObjectMethod(
    jsonEncode(<String, Object>{
      'id': _pointerId,
      'class': 'RecorderBookmarks',
      'method': 'importLog',
      'args': <String, String?>{
        'logPath': logPath,
        'importedFileName': importedFileName,
      },
    }),
  );
  return GemErrorExtension.fromCode(jsonDecode(resultString)['result']);
}