Table of Contents

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

isIdle bool

Whether the system is now idle.

idleDuration TimeSpan

The duration of idle time.

Properties

IdleDuration

Duration of idle time (if becoming idle) or time since last activity

public TimeSpan IdleDuration { get; }

Property Value

TimeSpan

IsIdle

Whether the system is now idle

public bool IsIdle { get; }

Property Value

bool