Arguments for the ambient light sensor.
Inheritance: System.EventArgs
示例#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);
            }
        }
示例#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);
            }
        }