Class MAMNotificationManagement
-
- All Implemented Interfaces:
public final class MAMNotificationManagementMAM wrapper around NotificationManager. This must be used in place of direct calls into NotificationManager.notify. It is recommended to call into NotificationManager as normal and allow the Build Plugin to apply this wrapper.
-
-
Method Summary
Modifier and Type Method Description static voidnotify(NotificationManager original, int id, Notification notification)See notify. static voidnotify(NotificationManager original, String tag, int id, Notification notification)See notify. static voidnotifyAsPackage(NotificationManager original, @NonNull() String targetPackage, @NonNull() String tag, int id, @NonNull() Notification notification)See notifyAsPackage. -
-
Method Detail
-
notify
static void notify(NotificationManager original, int id, Notification notification)
See notify.
- Parameters:
original- The original system NotificationManager.id- An identifier for this notification unique within your application.notification- A Notification object describing what to show the user.
-
notify
static void notify(NotificationManager original, String tag, int id, Notification notification)
See notify.
- Parameters:
original- The original system NotificationManager.tag- A string identifier for this notification.id- An identifier for this notification unique within your application.notification- A Notification object describing what to show the user.
-
notifyAsPackage
static void notifyAsPackage(NotificationManager original, @NonNull() String targetPackage, @NonNull() String tag, int id, @NonNull() Notification notification)
See notifyAsPackage.
- Parameters:
original- The original system NotificationManager.targetPackage- The package to post the notification as.tag- A string identifier for this notification.id- An identifier for this notification unique within your application.notification- A Notification object describing what to show the user.
-
-
-
-