Class IdleStateEventArgs
- Namespace
- SharpConsoleUI.Core
- Assembly
- SharpConsoleUI.dll
Event arguments for idle state changes
public class IdleStateEventArgs : EventArgs
- Inheritance
-
IdleStateEventArgs
- Inherited Members
Constructors
IdleStateEventArgs(bool, TimeSpan)
Initializes a new instance of the IdleStateEventArgs class.
public IdleStateEventArgs(bool isIdle, TimeSpan idleDuration)
Parameters
Properties
IdleDuration
Duration of idle time (if becoming idle) or time since last activity
public TimeSpan IdleDuration { get; }
Property Value
IsIdle
Whether the system is now idle
public bool IsIdle { get; }