public interface NotificationService
ClientAppManager cmgr = _context.clientAppManager();
if (cmgr != null) {
NotificationService ns = (NotificationService) cmgr.getRegisteredApp("desktopgui");
if (ns != null)
ns.notify("foo", null, Log.INFO, _t("foo"), _t("message"), "/foo/bar");
}
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(int id)
Cancel a notification if possible.
|
int |
notify(String source,
String category,
int priority,
String title,
String message,
String path)
Send a (possibly delayed) notification to the user.
|
boolean |
update(int id,
String title,
String message,
String path)
Update the text of a notification if possible.
|
boolean cancel(int id)
id - as received from notify()int notify(String source, String category, int priority, String title, String message, String path)
source - e.g. "i2psnark"category - may be null, probably unusedpriority - higher is higher, Log.INFO etc. recommended, probably unusedtitle - for the popup, translatedmessage - translatedpath - in console for more information, starting with /, must be URL-escaped, or null