Package org.mozilla.geckoview
Interface WebNotificationDelegate
public interface WebNotificationDelegate
Delegate for handling web notification events.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonCloseNotification(WebNotification notification) This is called when an existing notification is closed.default voidonShowNotification(WebNotification notification) This is called when a new notification is created.
-
Method Details
-
onShowNotification
This is called when a new notification is created. The implementations of this should call WebNotification.show or .dismiss, depending on whether the notification is successfully opened or not.- Parameters:
notification- The WebNotification received.
-
onCloseNotification
This is called when an existing notification is closed. The implementations of this should call WebNotification.dismiss.- Parameters:
notification- The WebNotification received.
-