onSamplingStart method

  1. @override
void onSamplingStart()
override

Handler called when sampling period starts.

Implementation

@override
void onSamplingStart() {
  sensorStartTime = DateTime.now().microsecondsSinceEpoch;
  userAccelerometerEventList.clear();
}