Dela via


HumanPresence Enum

Definition

Specifies the possible detection states supported by a HumanPresenceSensor.

public enum class HumanPresence
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 983040)]
enum class HumanPresence
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 983040)]
public enum HumanPresence
var value = Windows.Devices.Sensors.HumanPresence.unknown
Public Enum HumanPresence
Inheritance
HumanPresence
Attributes

Windows requirements

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

Fields

Name Value Description
Unknown 0

Human presence is unknown.

Present 1

Human presence is detected.

NotPresent 2

Human presence is not detected.

Applies to

See also