WebView.addOnShowNotification

This signal is emitted when a notification should be presented to the user. The @notification is kept alive until either: 1) the web page cancels it or 2) a navigation happens.

The default handler will emit a notification using libnotify, if built with support for it.

class WebView
gulong
addOnShowNotification
(
bool delegate dlg
,
ConnectFlags connectFlags = cast(ConnectFlags)0
)

Return Value

Type: gulong

%TRUE to stop other handlers from being invoked. %FALSE otherwise.

Meta

Since

2.8