public final class NotificationService
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
NotificationHandler |
getNotificationHandler()
Returns handler that is registered to receive browser common notification events from the browser associated with this
返回注册为从与此NotificationService浏览器上下文关联的浏览器接收浏览器常见通知事件的处理程序。 NotificationService browser context.
|
void |
setNotificationHandler(NotificationHandler handler)
Sets the specified notification handler to receive browser common notification events from the browser.
设置指定的通知处理程序以从浏览器接收浏览器常见的通知事件。 |
public NotificationHandler getNotificationHandler()
NotificationService browser context.
NotificationHandler instance if is registered. Otherwise returns
null.
实例(如果已注册)。否则返回。
public void setNotificationHandler(NotificationHandler handler)
If handler is null, notification events from browser related to this NotificationService browser context will not be handled.
handler - the
NotificationHandler instance.
-实例。