Home > @magiclane/maps-sdk > RecorderBookmarks
RecorderBookmarks class
Provides access to recorded logs and their metadata on the device.
RecorderBookmarks lets you list, inspect, export, import and manage recorded .gm and .mp4 files stored in a logs directory.
Do not instantiate directly; use to obtain an instance bound to a specific folder.
Signature:
export declare class RecorderBookmarks extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
string[] |
Returns a list of logs that are marked as protected. Protected logs are excluded from automatic deletion policies. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
|
Creates a RecorderBookmarks instance for the provided folder path. The returned instance is bound to the directory that contains | |
|
Deletes the specified log file from the filesystem. Does not delete protected logs. | ||
|
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. | ||
|
Returns the duration of an MP4 log file, in seconds. | ||
|
Retrieves metadata for a specific log file. | ||
|
Lists all The list can be sorted by sortOrder and sortType. By default the method returns logs sorted by date in ascending order. | ||
|
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. | ||
|
Marks a GM log as protected to prevent automatic deletion. This flag stops the system from removing the file during cleanup or retention-based pruning. Only GM logs are supported by this operation. | ||
|
Marks a GM log as uploaded. Use this to indicate that the log has been successfully transmitted to a server; uploader components or UI can then avoid re-uploading it. |