How to display a notification which will disappear in few seconds.

Hi, I want to show a simple "connection successful" notification to my plugin users. I currently use

Notifications.Bus.register(GROUP_NOTIFICATION_ID, NotificationDisplayType.BALLOON);
Notifications.Bus.notify(new Notification(GROUP_NOTIFICATION_ID, "Title", "Description", NotificationType.INFORMATION));


Is there a better way to do it or how can I make this notification dissappear in few seconds without user having to close it manually.

1 comment
Comment actions Permalink

Try notification.expire.

0

Please sign in to leave a comment.