exportLog

external fun exportLog(logFile: String, albumName: String, completionCallback: (Int, String) -> Unit? = null): Int

Exports a log to public storage

Return

GemError.NoError If operation succeeds.

Parameters

logFile

The file path to be exported.

albumName

Name of the album where the video files will be placed.


fun exportLog(logPath: String, type: EFileType, exportedFileName: String = "", positionDistance: Double = 0.0): Int

Exports a log file in a different format. If the name of the exported file is not specified, the log name will be used.

Return

GemError.NoError If the operation succeeds.

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

GemError.General If the operation fails.

Parameters

logPath

The file to be exported.

type

The type of the exported file.

exportedFileName

The name of the exported file.

positionDistance

The distance between two consecutive GPS positions. To retain the exact positions from the original log, set this distance to 0.