Track

@Serializable
data class Track(val trackRecords: List<TrackRecord>, val trackingEnded: Boolean = false) : TrackingContent

Represents location tracking updates in an active tracking session.

This content type provides one or more location records as part of an ongoing tracking session, with an optional flag to indicate the end of tracking.

Constructors

Link copied to clipboard
constructor(trackRecords: List<TrackRecord>, trackingEnded: Boolean = false)

Properties

Link copied to clipboard

The type of content represented by this instance.

Link copied to clipboard
val trackingEnded: Boolean = false

Boolean flag indicating if this is the final update in the tracking session. Defaults to false.

Link copied to clipboard

The specific subtype of tracking content being represented.

Link copied to clipboard

A list of location records captured during tracking.

Functions

Link copied to clipboard
fun createSmpHeader(messageCounter: Int, eventTimestamp: SmpTimestamp, version: Int = 1, ackFlag: Boolean = false): SmpHeader

Creates an SMP header for this content.