NotificationPanel
constructor(frontendContext: FrontendContext, priority: NotificationPanel.Priority, isDismissible: Boolean = true, showAsHeadsUpNotification: Boolean = true, showInNotificationCenter: Boolean = true, creationTime: Instant = Instant.now())
Parameters
frontendContext
An entry point for this Panel to communicate with the rest of the system.
priority
The notification Priority.
isDismissible
Whether the panel is dismissible by the user, default is true
. If false
, the notification panel behaves as a sticky notification.
showAsHeadsUpNotification
If true
, the notification is shown as heads-up notification. If false
, the notification is not shown as heads-up notification. In this case showInNotificationCenter must be true
. The default value is true
.
showInNotificationCenter
If true
, the notification is shown in the notification center. If false
, the notification is not shown in the notification center. In this case showAsHeadsUpNotification must be true
. The default value is true
.
creationTime
The creation time of the notification panel. This is similar to Android's Notification.Builder.setWhen.