android-components / mozilla.components.concept.engine.webnotifications / WebNotificationDelegate

WebNotificationDelegate

interface WebNotificationDelegate (source)

Notifies applications or other components of engine events related to web notifications e.g. an notification is to be shown or is to be closed

Functions

Name Summary
onCloseNotification open fun onCloseNotification(webNotification: WebNotification): Unit
Invoked when a web notification is to be closed.
onShowNotification open fun onShowNotification(webNotification: WebNotification): Unit
Invoked when a web notification is to be shown.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.

Inheritors

Name Summary
WebNotificationFeature class WebNotificationFeature : WebNotificationDelegate
Feature implementation for configuring and displaying web notifications to the user.