LogMetadata class Sensor Data Source
Provides metadata for a recorded sensor data log.
The LogMetadata object exposes information extracted from a recorded log file such as start/end timestamps and positions, route coordinates, activity details, user-provided metadata, and basic metrics. The LogMetadata class provides information about the recorded log via the Recorder class.
Do not construct this class directly; obtain an instance via RecorderBookmarks.getLogMetadata.
See also:
- RecorderBookmarks.getLogMetadata: Obtain a LogMetadata for a file path.
- LogMetrics: high-level metrics for the recorded log.
Constructors
- LogMetadata.new(int id)
Properties
- activeDurationMillis → int
-
Total active recording time in milliseconds (excludes paused intervals).
no setter
- activityRecord → ActivityRecord
-
Activity details recorded with the log.
no setter
-
availableDataTypes
→ List<
DataType> -
List of data types recorded in the log.
no setter
- durationMillis → int
-
Total duration of the log in milliseconds.
no setter
- endPosition → Coordinates
-
Last recorded GPS coordinate in the log.
no setter
- endTimestampInMillis → int
-
Timestamp of the last sensor data in the log, in milliseconds since epoch.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isProtected → bool
-
Whether the log file is marked as protected from automatic deletion.
no setter
- isUploaded → bool
-
Whether the log file was uploaded to the server.
no setter
- logMetrics → LogMetrics
-
Basic metrics computed for the log (distance, elevation gain, average speed).
no setter
- logSize → int
-
Size of the log file in bytes.
no setter
- pointerId → int
-
The pointer ID of the native object
no setterinherited
-
preciseRoute
→ List<
Coordinates> -
The precise, full-resolution route recorded in the log.
no setter
-
route
→ List<
Coordinates> -
A simplified route sampled from the recorded log.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
soundMarks
→ List<
SoundMark> -
Sound annotations recorded within the log.
no setter
- startPosition → Coordinates
-
First recorded GPS coordinate in the log.
no setter
- startTimestampInMillis → int
-
Timestamp of the first sensor data in the log, in milliseconds since epoch.
no setter
-
textMarks
→ List<
TextMark> -
Text annotations recorded within the log.
no setter
- transportMode → RecordingTransportMode
-
Transport mode used during recording.
no setter
Methods
-
addUserMetadata(
String key, Uint8List userMetadata) → Future< bool> - Adds or overwrites custom metadata for the given key.
-
dispose(
) → void -
Disposes the native object.
inherited
-
getUserMetadata(
String key) → Uint8List? - Retrieves custom user metadata stored with the given key.
-
isDataTypeAvailable(
DataType type) → bool - Checks whether a given data type exists in the log.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited