Example #1
0
        static void PlatformStop()
        {
            if (listener == null)
            {
                return;
            }

            Platform.SensorManager.UnregisterListener(listener, barometer);
            listener.Dispose();
            listener = null;
        }
Example #2
0
 static void PlatformStart(SensorSpeed sensorSpeed)
 {
     listener  = new BarometerListener();
     barometer = DefaultBarometer;
     Platform.SensorManager.RegisterListener(listener, barometer, sensorSpeed.ToPlatform());
 }