Udostępnij za pośrednictwem


HumanPresenceSensorReading Class

Definition

Represents a single reading from a HumanPresenceSensor.

public ref class HumanPresenceSensorReading sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HumanPresenceSensorReading final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HumanPresenceSensorReading
Public NotInheritable Class HumanPresenceSensorReading
Inheritance
Object Platform::Object IInspectable HumanPresenceSensorReading
Attributes

Windows requirements

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

Properties

DetectedPersons

Gets a collection of all detected persons (primary user and otherwise).

DistanceInMillimeters

Gets the distance between the HumanPresenceSensor and the detected user.

Engagement

Gets whether a user is engaged with the device.

OnlookerPresence

Gets whether a person other than the primary user is detected and engaged with the device.

Presence

Gets whether a user is detected.

Properties

Gets a collection of properties assigned to the reading.

Timestamp

Gets the time at which the sensor reported the reading.

Applies to

See also