Arguments for the ambient light sensor.
Inheritance: System.EventArgs
Beispiel #1
0
        void OnReadingChanged(Sensor sender, LightSensorReadingChangedEventArgs args)
        {
            var handler = changed;

            if (handler != null)
            {
                var value = args.Reading.IlluminanceInLux;
                var e     = new AmbientLightEventArgs(value);
                handler.Invoke(this, e);
            }
        }
Beispiel #2
0
        void OnReadingChanged(Sensor sender, LightSensorReadingChangedEventArgs args)
        {
            var handler = changed;

            if (handler != null)
            {
                var value = args.Reading.IlluminanceInLux;
                var e = new AmbientLightEventArgs(value);
                handler.Invoke(this, e);
            }
        }