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
| Name | Description |
|---|---|
| IdleStatus() |
IdleStatus()
public IdleStatus()No documentation is available.
Properties
| Name | Description |
|---|---|
| Default | Gets the status of a user who is interacting with the device, whose screen is unlocked. |
| IsScreenLocked | Gets whether a screensaver or a lock screen prevents the content from being seen or interacted with. The default is false. |
| LastInteractionTime | 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. |
Default
IdleDetection.csGets the status of a user who is interacting with the device, whose screen is unlocked.
public static IdleStatus Default { get; }Property value
IsScreenLocked
IdleDetection.csLastInteractionTime
IdleDetection.csGets 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
Methods
| Name | Description |
|---|---|
| Equals(IdleStatus?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(IdleStatus?)
public bool Equals(IdleStatus? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(IdleStatus?, IdleStatus?) | |
| operator !=(IdleStatus?, IdleStatus?) |
operator ==(IdleStatus?, IdleStatus?)
public static bool operator ==(IdleStatus? left, IdleStatus? right)No documentation is available.
operator !=(IdleStatus?, IdleStatus?)
public static bool operator !=(IdleStatus? left, IdleStatus? right)No documentation is available.