HumanPresenceSensorReadingUpdate 类

定义

表示 HumanPresenceSensor 的单个更新读取。

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

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.23504.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v15.0 中引入)

构造函数

HumanPresenceSensorReadingUpdate()

初始化 HumanPresenceSensorReadingUpdate 对象的新实例。

属性

DistanceInMillimeters

获取或设置 HumanPresenceSensor 与检测到的用户之间的更新距离。

Engagement

获取或设置用户是否与设备交互。

OnlookerPresence

表示 HumanPresenceSensor 的单个更新读取。

Presence

获取或设置是否检测到主要用户。

Timestamp

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

适用于

另请参阅