Share via


LightSensorReading 类

定义

表示环境光传感器读数。

public ref class LightSensorReading sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LightSensorReading final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class LightSensorReading
Public NotInheritable Class LightSensorReading
继承
Object Platform::Object IInspectable LightSensorReading
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

调用 GetCurrentReading 方法时会访问此对象;并且,在事件回调方法中检索 LightSensorReadingChangedEventArgs 对象的 Reading 属性时,将对其进行访问。

版本历史记录

Windows 版本 SDK 版本 增值
1709 16299 PerformanceCount
1709 16299 属性

属性

IlluminanceInLux

获取照度级别(以照度为单位)。

PerformanceCount

获取与读取关联的性能计数。 这允许读取与系统上的其他设备和进程同步。

Properties

获取传感器报告的数据属性。

Timestamp

获取传感器报告读数的时间。

适用于