Example #1
0
        void ISensorEventListener.OnSensorChanged(SensorEvent e)
        {
            if ((e?.Values?.Count ?? 0) < 3)
            {
                return;
            }

            var data = new MagnetometerData(e.Values[0], e.Values[1], e.Values[2]);

            Magnetometer.OnChanged(data);
        }
        void ISensorEventListener.OnSensorChanged(SensorEvent e)
        {
            var data = new MagnetometerData(e.Values[0], e.Values[1], e.Values[2]);

            Magnetometer.OnChanged(data);
        }