Udostępnij za pośrednictwem


HumanPresenceSensorReadingUpdate Class

Definition

Represents a single, updated reading from a 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
Inheritance
Object Platform::Object IInspectable HumanPresenceSensorReadingUpdate
Attributes

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v15.0)

Constructors

HumanPresenceSensorReadingUpdate()

Initializes a new instance of a HumanPresenceSensorReadingUpdate object.

Properties

DistanceInMillimeters

Gets or sets the updated distance between the HumanPresenceSensor and the detected user.

Engagement

Gets or sets whether a user is engaged with the device.

OnlookerPresence
Presence

Gets or sets whether a primary user is detected.

Timestamp

Gets or sets the time at which the sensor reported the reading.

Applies to

See also