Overview
The On-Device Memory feature automatically stores video measurements results locally on the device, enabling historical analysis and trend tracking. Measurement results are stored separately for each user ID provided during initialization.
The shared history structures retain the isCalibration field for wrapper compatibility. It is always false for Shen.AI (CE) measurements because calibration is not supported.
Accessing the history
Call getMeasurementResultsHistory() to retrieve measurements results history from local memory. If no measurement has finished successfully yet, a null value will be returned. Below is a summary of the returned structure:
class MeasurementResultsWithMetadata {
MeasurementResults measurementResults;
int epochTimestamp;
bool isCalibration;
}
class MeasurementResultsHistory {
List<MeasurementResultsWithMetadata?> history;
}
final history = await ShenaiSdk.getMeasurementResultsHistory();