public class SystemActivityNotifications
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
SystemActivityNotifications.NotificationsDelegate
Delegate class to be notified about changes.
|
Modifier and Type | Field and Description |
---|---|
static int |
NOTIFY_DISPLAY_SLEEP
Computer display has stand by.
|
static int |
NOTIFY_DISPLAY_WAKE
Computer display wakes up after stand by.
|
static int |
NOTIFY_DNS_CHANGE
A change in dns configuration has occurred.
|
static int |
NOTIFY_ENDSESSION
All processes have been informed about ending session, now notify for
the actual end session.
|
static int |
NOTIFY_NETWORK_CHANGE
A change in network configuration has occurred.
|
static int |
NOTIFY_QUERY_ENDSESSION
Notifies for start of process of ending desktop session,
logoff or shutdown.
|
static int |
NOTIFY_SCREEN_LOCKED
Screen has been locked.
|
static int |
NOTIFY_SCREEN_UNLOCKED
Screen has been unlocked.
|
static int |
NOTIFY_SCREENSAVER_START
Screensaver has been started.
|
static int |
NOTIFY_SCREENSAVER_STOP
Screensaver has been stopped.
|
static int |
NOTIFY_SCREENSAVER_WILL_STOP
Screensaver will stop.
|
static int |
NOTIFY_SLEEP
Notify that computers is going to sleep.
|
static int |
NOTIFY_WAKE
Notify that computer is wakeing up after stand by.
|
Constructor and Description |
---|
SystemActivityNotifications() |
Modifier and Type | Method and Description |
---|---|
static long |
getLastInput()
Returns the when was last input in milliseconds.
|
static boolean |
isLoaded()
Whether native library is loaded.
|
static void |
setDelegate(long ptr,
SystemActivityNotifications.NotificationsDelegate delegate)
Sets notifier delegate.
|
static void |
setDelegate(SystemActivityNotifications.NotificationsDelegate delegate)
Sets delegate.
|
static void |
start()
Start.
|
static void |
stop()
Stop.
|
public static final int NOTIFY_DISPLAY_SLEEP
public static final int NOTIFY_DISPLAY_WAKE
public static final int NOTIFY_DNS_CHANGE
public static final int NOTIFY_ENDSESSION
public static final int NOTIFY_NETWORK_CHANGE
public static final int NOTIFY_QUERY_ENDSESSION
public static final int NOTIFY_SCREEN_LOCKED
public static final int NOTIFY_SCREEN_UNLOCKED
public static final int NOTIFY_SCREENSAVER_START
public static final int NOTIFY_SCREENSAVER_STOP
public static final int NOTIFY_SCREENSAVER_WILL_STOP
public static final int NOTIFY_SLEEP
public static final int NOTIFY_WAKE
public static long getLastInput()
public static boolean isLoaded()
public static void setDelegate(long ptr, SystemActivityNotifications.NotificationsDelegate delegate)
ptr
- delegate
- public static void setDelegate(SystemActivityNotifications.NotificationsDelegate delegate)
delegate
- public static void start()
public static void stop()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.