importLog

external fun importLog(logPath: String, importedFileName: String = ""): Int

Imports a log file in GM format. Supported file formats include: GPX, NMEA, KML, fit, tcx. If the name of the imported file is not specified, the log name will be used.

Return

GemError.NoError If the operation succeeds.

GemError.Exist If the importedFileName file already exists in the folder.

GemError.NotSupported If the file format is not supported.

GemError.General If the operation fails.

Parameters

logPath

The path to the log file to be imported.

importedFileName

The name to be used for the imported file. If not specified, the log file's name will be used.