public class IdleTracker
extends java.lang.Object
Constructor and Description |
---|
IdleTracker()
Creates an instance of
com.jniwrapper.win32.hook.IdleTracker class
and initilizes the idleness timeout with 1 minute timeout. |
IdleTracker(long idleDelay)
Creates an instance of
com.jniwrapper.win32.hook.IdleTracker class
and initilizes the idleness timeout. |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IdleTrackerListener listener)
Adds a listener of the idle timeout event.
|
void |
removeListener(IdleTrackerListener listener)
Removes a listener of the idle timeout event.
|
void |
start()
Starts idle tracking.
|
void |
stop()
Stops idle tracking.
|
public IdleTracker()
com.jniwrapper.win32.hook.IdleTracker
class
and initilizes the idleness timeout with 1 minute timeout.public IdleTracker(long idleDelay)
com.jniwrapper.win32.hook.IdleTracker
class
and initilizes the idleness timeout.idleDelay
- is the timeout of mouse and keyboard idleness in milliseconds.public void start()
public void stop()
public void addListener(IdleTrackerListener listener)
listener
- public void removeListener(IdleTrackerListener listener)
listener
-