OnlookerDetectionAction Enum
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.
Specifies the action taken when an onlooker is detected by the human presence sensors.
public enum class OnlookerDetectionAction
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 1245184)]
/// [Windows.Foundation.Metadata.Experimental]
enum class OnlookerDetectionAction
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 1245184)]
[Windows.Foundation.Metadata.Experimental]
public enum OnlookerDetectionAction
var value = Windows.Devices.Sensors.OnlookerDetectionAction.dim
Public Enum OnlookerDetectionAction
- Inheritance
-
OnlookerDetectionAction
- Attributes
Windows requirements
Device family |
Windows 11, version 24H2 (introduced in 10.0.26100.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v19.0)
|
Fields
Name | Value | Description |
---|---|---|
Dim | 0 | Device screen will dim when onlooker is detected. |
Notify | 1 | When an onlooker is detected a windows notification will be displayed. |
DimAndNotify | 2 | When an onlooker is detected the screen will dim and a windows notification will be displayed. |
Remarks
The action taken on onlooker detection can be disabled through the top level toggle for this feature.
The user can specify their preferred onlooker detection behavior in the System settings (see Launch the Windows Settings app).
Applies to
See also
- IsOnlookerDetectionEnabled
- <xref:Windows.Devices.Sensors.HumanPresenceFeatures.IsOnlookerDetectionSupported%0a%5bDevice+experiences+-+Onlooker+Detection%5d(%2fwindows-hardware%2fdesign%2fdevice-experiences%2fsensors-presence-onlooker-detection)>