public interface SystemActivityNotificationsService
Modifier and Type | Method and Description |
---|---|
void |
addIdleSystemChangeListener(long idleTime,
SystemActivityChangeListener listener)
Registers a listener that would be notified for idle of the system
for idleTime.
|
void |
addSystemActivityChangeListener(SystemActivityChangeListener listener)
Registers a listener that would be notified of changes that have occurred
in the underlying system.
|
long |
getTimeSinceLastInput()
The time since last user input.
|
boolean |
isSupported(int eventID)
Can check whether an event id is supported on
current operation system.
|
void |
removeIdleSystemChangeListener(SystemActivityChangeListener listener)
Remove the specified listener so that it won't receive further
notifications for idle system.
|
void |
removeSystemActivityChangeListener(SystemActivityChangeListener listener)
Remove the specified listener so that it won't receive further
notifications of changes that occur in the underlying system
|
void addSystemActivityChangeListener(SystemActivityChangeListener listener)
listener
- the listener that we'd like to register for changes in
the underlying system.void removeSystemActivityChangeListener(SystemActivityChangeListener listener)
listener
- the listener to remove.void addIdleSystemChangeListener(long idleTime, SystemActivityChangeListener listener)
idleTime
- the time in milliseconds after which we will consider
system to be idle. This doesn't count when system seems idle as
monitor is off or screensaver is on, or desktop is locked.listener
- the listener that we'd like to register for changes in
the underlying system.void removeIdleSystemChangeListener(SystemActivityChangeListener listener)
listener
- the listener to remove.boolean isSupported(int eventID)
eventID
- the event to check.long getTimeSinceLastInput()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.