Skip to content
Select language:English

MCL 1.3.5

class Sample<T>(val value: T, val timestamp: Long)

Value associated with the timestamp at which it was acquired or generated.

This class is commonly used to transport sensor samples, camera frames, poses, or any other time-dependent data through shared APIs and streams.

Type Parameters

T

Type of the sampled value.

Constructors

constructor(value: T, timestamp: Long)

Properties

Timestamp associated with the sample.

val value: T

The sampled data.