Click or drag to resize

IdleTimer Class

IdleTimer lets you to take actions after a specified system-wide (related to the whole system) idle time or to check the time interval of user inactivity.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      ZylSoft.TimersCustomTimer
        ZylSoft.TimersIdleTimer

Namespace: ZylSoft.Timers
Assembly: ZylIdleTimer (in ZylIdleTimer.dll) Version: 1.42.8793.22144
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public class IdleTimer : CustomTimer

The IdleTimer type exposes the following members.

Constructors
 NameDescription
Public methodIdleTimer Constructor.
Public methodIdleTimer(IContainer) Constructor.
Public methodIdleTimer(Int32) Constructor.
Top
Properties
 NameDescription
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Public propertyEnabled Enables or disables the timer.
(Inherited from CustomTimer)
Public propertyIdleInterval The time interval of idle in milliseconds (1 second = 1000 milliseconds). When this interval of idle is expired then the Idle event is fired.
Public propertyIdleIntervalInMinutes The time interval of idle in minutes. When this interval of idle is expired then the Idle event is fired.
Public propertyIdleIntervalInSeconds The time interval of idle in seconds (1 second = 1000 milliseconds). When this interval of idle is expired then the Idle event is fired.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyWarningInterval The time interval before idle in milliseconds. When this interval is expired then the IdleWarning event is fired. WarningInterval must be lower than IdleInterval.
Public propertyWarningIntervalInMinutes The time interval before idle in minutes. When this interval is expired then the IdleWarning event is fired. WarningInterval must be lower than IdleInterval.
Public propertyWarningIntervalInSeconds The time interval before idle in seconds. When this interval is expired then the IdleWarning event is fired. WarningInterval must be lower than IdleInterval.
Top
Methods
 NameDescription
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject)
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodGetRelativeSystemIdleTime Returns the minimum between system-wide idle time and the interval from the latest reset in milliseconds.
Public methodStatic memberGetSystemIdleTime Returns the system-wide idle time in milliseconds.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Public methodResetSystemIdleTime Resets the idle timer.
Public methodStart Starts the timer. (Enabled = true)
(Inherited from CustomTimer)
Public methodStop Stops the timer. (Enabled = false)
(Inherited from CustomTimer)
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Top
Events
 NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventIdle Occurs when IdleInterval is expired.
Public eventIdleWarning Occurs before IdleInterval is expired. The interval is set by WarningInterval property.
Public eventResume Occurs after the idle time interval is expired and the idle time counter is reset due to user intervention.
Top
See Also