public async void OnSensorChanged(SensorEvent e) { await StepController.UpdateTodaySteps_DB(); await StepController.UpdateTodaySteps_Properties(); Steps++; Console.WriteLine(e.ToString()); }
public void OnSensorChanged(SensorEvent e) { if (e.Sensor.Type == SensorType.Proximity) { lock (_locker) { location = e.ToString(); Monitor.Pulse(_locker); } } }