HumanPresenceSensorReading Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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. |