Share via


HumanPresenceSettings.IsAttentionAwareDimmingEnabled Property

Definition

This property is obsolete. For more information, see Remarks.

Gets or sets whether the human presence sensor can dim the screen of the PC when user interaction is not detected for a period of time.

public:
 property bool IsAttentionAwareDimmingEnabled { bool get(); void set(bool value); };
/// [get: Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")]
/// [set: Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")]
bool IsAttentionAwareDimmingEnabled();

void IsAttentionAwareDimmingEnabled(bool value);
public bool IsAttentionAwareDimmingEnabled { [Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")] get; [Windows.Foundation.Metadata.Deprecated("Use IsAdaptiveDimmingEnabled instead of IsAttentionAwareDimmingEnabled.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 983040, "Windows.Foundation.UniversalApiContract")] set; }
var boolean = humanPresenceSettings.isAttentionAwareDimmingEnabled;
humanPresenceSettings.isAttentionAwareDimmingEnabled = boolean;
Public Property IsAttentionAwareDimmingEnabled As Boolean

Property Value

Boolean

bool

True, if attention aware dimming is enabled. Otherwise, false. The default is false.

Attributes

Remarks

Obsolete as of the May Moment update for Windows 11, Version 22H2, Build 22621.

We recommend using the AdaptiveDimming APIs instead of the AttentionAwareDimming APIs (IsAttentionAwareDimmingSupported, IsAttentionAwareDimmingEnabled), which are now obsolete.

The user can specify their preferred dimming behavior in the System settings (see Launch the Windows Settings app).

Applies to

See also