|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SystemActivityNotificationsService
Listens for some system specific events such as sleep, wake, network change, desktop activity, screensaver etc. and informs the registered listeners.
| Method Summary | |
|---|---|
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. |
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 |
| Method Detail |
|---|
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.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||