LightSensorReading LightSensorReading LightSensorReading LightSensorReading Class

Represents an ambient light–sensor reading.

Syntax

Declaration

public sealed class LightSensorReadingpublic sealed class LightSensorReadingPublic NotInheritable Class LightSensorReadingpublic sealed class LightSensorReading

Remarks

This object is accessed when you invoke the GetCurrentReading() method; and, it is accessed when you retrieve the Reading property of the LightSensorReadingChangedEventArgs object in the event callback method..

Properties summary

Gets the illuminance level in lux.

Gets the time at which the sensor reported the reading.

Properties

  • IlluminanceInLux
    IlluminanceInLux
    IlluminanceInLux
    IlluminanceInLux

    Gets the illuminance level in lux.

    public float IlluminanceInLux { get; }public float IlluminanceInLux { get; }Public ReadOnly Property IlluminanceInLux As floatpublic float IlluminanceInLux { get; }

    Property Value

    • float
      float
      float
      float

      The illuminance level in lux.

  • Timestamp
    Timestamp
    Timestamp
    Timestamp

    Gets the time at which the sensor reported the reading.

    public DateTime Timestamp { get; }public DateTimeOffset Timestamp { get; }Public ReadOnly Property Timestamp As DateTimeOffsetpublic DateTime Timestamp { get; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Devices.Sensors.dll