Class MAMNotificationManagement

  • All Implemented Interfaces:

    
    public final class MAMNotificationManagement
    
                        

    MAM 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void notify(NotificationManager original, int id, Notification notification) See notify.
      static void notify(NotificationManager original, String tag, int id, Notification notification) See notify.
      static void notifyAsPackage(NotificationManager original, @NonNull() String targetPackage, @NonNull() String tag, int id, @NonNull() Notification notification) See notifyAsPackage.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.