-
public class NotificationParams
A helper class for creating a notification to be displayed by a foreground service.
-
-
Field Summary
Fields Modifier and Type Field Description private final int
id
private final Notification
notification
-
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. -
-
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.
-
-
Method Detail
-
getId
int getId()
Returns the identifier for this notification.
-
getNotification
@NonNull() Notification getNotification()
Returns the notification to be displayed.
-
-
-
-