onMeasurement abstract method

Future<void> onMeasurement(
  1. Measurement measurement
)

On each measurement collected, the onMeasurement handler is called.

Implementations of this interface should handle how to save or upload the measurement.

Implementation

Future<void> onMeasurement(Measurement measurement);