NotificationService instead.@Deprecated public final class NotificationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SETTING_NOTIFICATION_SOURCE
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
clearNotifications(String source)
Deprecated.
Sends clear event which will remove all notifications from specified source.
|
static void |
clearNotifications(String source,
NotificationEvent.Level level)
Deprecated.
Sends clear event which will remove all notifications from specified source of specified importance level.
|
static String |
getWidgetNotificationSource(ActionContext<?> context)
Deprecated.
Gets default source for each notification sent by specified action.
|
static String |
getWidgetNotificationSource(WidgetInstanceManager widgetInstanceManager)
Deprecated.
Gets default source for each notification sent by specified widget.
|
static void |
notifyUser(String source,
String eventType,
NotificationEvent.Level level,
Object... referenceObjects)
Deprecated.
Sends a notification to end user.
|
public static final String SETTING_NOTIFICATION_SOURCE
public static void notifyUser(String source, String eventType, NotificationEvent.Level level, Object... referenceObjects)
source - identity of notification source.eventType - type of notification to be sent NotificationEventTypes.level - importance level of notification.referenceObjects - optional array of objects that are related to event.public static void clearNotifications(String source)
source - identity of notification source.public static void clearNotifications(String source, NotificationEvent.Level level)
source - identity of notification source.level - importance level of notifications to be removed.public static String getWidgetNotificationSource(WidgetInstanceManager widgetInstanceManager)
widgetInstanceManager - instance manager of a widget which sends notification.public static String getWidgetNotificationSource(ActionContext<?> context)
context - action context.Copyright © 2018. All rights reserved.