public static void DisableSensor()

in sensors/Tools/SensorExplorer/Sensor.cs [1151:1214]


        public static void DisableSensor(int sensorType, int index)
        {
            try
            {
                switch (sensorType)
                {
                    case ACCELEROMETER:
                        DisableAccelerometer(index);
                        break;
                    case ACCELEROMETERGRAVITY:
                        DisableAccelerometerGravity(index);
                        break;
                    case ACCELEROMETERLINEAR:
                        DisableAccelerometerLinear(index);
                        break;
                    case ACTIVITYSENSOR:
                        DisableActivitySensor(index);
                        break;
                    case ALTIMETER:
                        DisableAltimeter();
                        break;
                    case BAROMETER:
                        DisableBarometer(index);
                        break;
                    case COMPASS:
                        DisableCompass(index);
                        break;
                    case CUSTOMSENSOR:
                        DisableCustomSensor(index);
                        break;
                    case GYROMETER:
                        DisableGyrometer(index);
                        break;
                    case INCLINOMETER:
                        DisableInclinometer(index);
                        break;
                    case LIGHTSENSOR:
                        DisableLightSensor(index);
                        break;
                    case MAGNETOMETER:
                        DisableMagnetometer(index);
                        break;
                    case ORIENTATIONSENSOR:
                        DisableOrientationSensor(index);
                        break;
                    case ORIENTATIONGEOMAGNETIC:
                        DisableOrientationGeomagnetic(index);
                        break;
                    case ORIENTATIONRELATIVE:
                        DisableOrientationRelative(index);
                        break;
                    case PEDOMETER:
                        DisablePedometer(index);
                        break;
                    case PROXIMITYSENSOR:
                        DisableProximitySensor(index);
                        break;
                    case SIMPLEORIENTATIONSENSOR:
                        DisableSimpleOrientationSensor(index);
                        break;
                }
            }
            catch { }
        }