C# 클래스 PoEWhisperNotifier.IdleManager

Manages actions and calculations for a user's idle status. A user is considered idle if they have not entered any input (in any application) for over a certain period of time.
파일 보기 프로젝트 열기: Kapps/PoEWhisperNotifier 1 사용 예제들

공개 메소드들

메소드 설명
AddIdleAction ( System.Action Act ) : void

Calls the given action if the user does not enter any input (hence acknowledging the action) before being considered idle. For example, a user may wish to only be notified of PushBullet notifications when idle, however after leaving the computer they may receive a message prior to being considered idle, which would cause them to miss it. This method would invoke that notification if they go idle before acknowledging it (by providing any user input anywhere). If the user is currently idle, the action is invoked immediately.

BeginMonitoring ( ) : void

Begins monitoring for any idle activity.

StopMonitoring ( ) : void

Stops monitoring for idle activity.

비공개 메소드들

메소드 설명
GetLastInputInfo ( LASTINPUTINFO &plii ) : bool
RunIdleLoop ( ) : void

메소드 상세

AddIdleAction() 공개 정적인 메소드

Calls the given action if the user does not enter any input (hence acknowledging the action) before being considered idle. For example, a user may wish to only be notified of PushBullet notifications when idle, however after leaving the computer they may receive a message prior to being considered idle, which would cause them to miss it. This method would invoke that notification if they go idle before acknowledging it (by providing any user input anywhere). If the user is currently idle, the action is invoked immediately.
public static AddIdleAction ( System.Action Act ) : void
Act System.Action
리턴 void

BeginMonitoring() 공개 정적인 메소드

Begins monitoring for any idle activity.
public static BeginMonitoring ( ) : void
리턴 void

StopMonitoring() 공개 정적인 메소드

Stops monitoring for idle activity.
public static StopMonitoring ( ) : void
리턴 void