IdleStatus Class

The idle state of the user and of the screen of the device, returned by an IdleStateProvider.

public sealed class IdleStatus : IEquatable<IdleStatus>
Implements

Constructors

NameDescription
IdleStatus()

IdleStatus()

public IdleStatus()

No documentation is available.

Properties

NameDescription
DefaultGets the status of a user who is interacting with the device, whose screen is unlocked.
IsScreenLockedGets whether a screensaver or a lock screen prevents the content from being seen or interacted with. The default is false.
LastInteractionTimeGets the time of the last interaction of the user with the device, measured by the clock of the browsing context (BrowsingContextOptions.TimeProvider), or null when the user is interacting with it. The user is idle for an IdleDetector once its threshold elapsed since this time. The default is null.

Gets the status of a user who is interacting with the device, whose screen is unlocked.

public static IdleStatus Default { get; }

Property value

IdleStatus

IsScreenLocked

IdleDetection.cs

Gets whether a screensaver or a lock screen prevents the content from being seen or interacted with. The default is false.

public bool IsScreenLocked { get; init; }

Property value

bool

LastInteractionTime

IdleDetection.cs

Gets the time of the last interaction of the user with the device, measured by the clock of the browsing context (BrowsingContextOptions.TimeProvider), or null when the user is interacting with it. The user is idle for an IdleDetector once its threshold elapsed since this time. The default is null.

public DateTimeOffset? LastInteractionTime { get; init; }

Property value

DateTimeOffset?

Methods

NameDescription
Equals(IdleStatus?)
Equals(object?)
GetHashCode()
ToString()

Equals overloads

Equals(IdleStatus?)

public bool Equals(IdleStatus? other)
Parameters
other IdleStatus?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(IdleStatus?, IdleStatus?)
operator !=(IdleStatus?, IdleStatus?)

operator ==(IdleStatus?, IdleStatus?)

public static bool operator ==(IdleStatus? left, IdleStatus? right)

Parameters

left IdleStatus?
right IdleStatus?

Returns

bool

No documentation is available.

operator !=(IdleStatus?, IdleStatus?)

public static bool operator !=(IdleStatus? left, IdleStatus? right)

Parameters

left IdleStatus?
right IdleStatus?

Returns

bool

No documentation is available.