WebView.connectShowNotification
gulong connectShowNotification(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkit.notification.Notification)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView)))
&& Parameters!T.length < 3)Connect to ShowNotification signal.
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.
Parameters
callback | signal callback delegate or function to connect bool callback(webkit.notification.Notification notification, webkit.web_view.WebView webView) notification a #WebKitNotification (optional) webView the instance the signal is connected to (optional) Returns true to stop other handlers from being invoked. false otherwise. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID