To hide the Notification after a specific time period that is measured in milliseconds, pass a
hideAfter duration value to the
NotificationService.show method. When the
closable property is set to
hideAfter property is ignored.
The following example demonstrates how to show an auto-hiding Notification to quickly notify the user about a successful operation.
The following example demonstrates how to show a closable Notification to catch the user attention when, for example, an error has occurred during the execution of the application. The
afterHide subscription allows you to execute some functionality after the Notification instance is hidden and the hide animation is over.