public final class Notify extends Glib
public class ExampleNotificationApp public static void main(String[] args) { Gtk.init(args); Notify.init("example-app"); // build user interface // create and display notifications for application events Gtk.main(); } }
The meat of this library is the Notification
class; see there.
Modifier and Type | Method and Description |
---|---|
static String |
getApplicationName()
Returns the registered application name.
|
static String[] |
getServerCapabilities()
Returns a list of features supported by the notification system.
|
static boolean |
init(String applicationName)
Initialize the notification system.
|
static boolean |
isInitialized()
Tests whether notification system is initialized or not.
|
static void |
uninit()
Uninitialize the notification system.
|
formatSize, formatSize, getProgramName, getRealName, getSystemConfigDirs, getSystemDataDirs, getUserCacheDir, getUserConfigDir, getUserDataDir, getUserName, getUserSpecialDir, idleAdd, markupEscapeText, reloadUserSpecialDirsCache, setProgramName
public static String getApplicationName()
Notify.init()
.public static String[] getServerCapabilities()
See the "D-BUS Protocol" section in Desktop Notifications Specification for standard capabilities.
public static boolean init(String applicationName)
Notification
methods are used.applicationName
- Name of the application initializing notification system.public static boolean isInitialized()
public static void uninit()