public interface NotificationHandler
{@link NotificationHandler}
implementation invoking the
setNotificationHandler()
method of the
NotificationService
. Appropriate handler methods implemented will be invoked when browser performs notification actions.
Modifier and Type | Method and Description |
---|---|
void |
onShowNotification(NotificationEvent event)
Invoked when browser informs that a new notification should be displayed.
当浏览器通知应显示新的通知时调用。 |
void onShowNotification(NotificationEvent event)
event
-
NotificationEvent
will contain information about notification that should be displayed.
-将包含有关应显示的通知的信息。