HumanPresenceSensorReading.OnlookerPresence Property
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.
Gets whether a person other than the primary user is detected and engaged with the device.
public:
property HumanPresence OnlookerPresence { HumanPresence get(); };
HumanPresence OnlookerPresence();
public HumanPresence OnlookerPresence { get; }
var humanPresence = humanPresenceSensorReading.onlookerPresence;
Public ReadOnly Property OnlookerPresence As HumanPresence
Property Value
The detection state reported by a HumanPresenceSensor.
Windows requirements
Device family |
Windows 11, version 24H2 (introduced in 10.0.26100.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v19.0)
|
Remarks
Can be useful for addressing privacy concerns. For example, a user might want there screen to dim automatically when another person is detected.