IdleDetectionOptions Class

The host hooks of the Idle Detection API (https://wicg.github.io/idle-detection/, BrowsingContextOptions.IdleDetection).

public sealed class IdleDetectionOptions

Constructors

NameDescription
IdleDetectionOptions()

IdleDetectionOptions()

public IdleDetectionOptions()

No documentation is available.

Properties

NameDescription
ProviderGets or sets the source of the idle state of the user and of the screen (IdleDetector), e.g. an IdleStateProvider whose IdleStateProvider.Status is set by the application, or a subclass that reads the state of the operating system. A provider can be shared by several browsing contexts. The default is null: the user is active and the screen is unlocked (IdleStatus.Default).

Gets or sets the source of the idle state of the user and of the screen (IdleDetector), e.g. an IdleStateProvider whose IdleStateProvider.Status is set by the application, or a subclass that reads the state of the operating system. A provider can be shared by several browsing contexts. The default is null: the user is active and the screen is unlocked (IdleStatus.Default).

public IdleStateProvider? Provider { get; init; }

Property value

IdleStateProvider?