Package 

Class NotificationParams


  • 
    public class NotificationParams
    
                        

    A helper class for creating a notification to be displayed by a foreground service.

    • Constructor Summary

      Constructors 
      Constructor Description
      NotificationParams(int id, Notification notification) Creates a NotificationParams object with the provided id and notification.
    • Method Summary

      Modifier and Type Method Description
      int getId() Returns the identifier for this notification.
      Notification getNotification() Returns the notification to be displayed.
      • Methods inherited from class java.lang.Object

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

      • NotificationParams

        NotificationParams(int id, Notification notification)
        Creates a NotificationParams object with the provided id and notification.
        Parameters:
        id - A unique identifier for this notification.
        notification - A Notification object describing what to show the user.