WebView.connectLoadFailed

Connect to LoadFailed signal.

Emitted when an error occurs during a load operation. If the error happened when starting to load data for a page load_event will be webkit.types.LoadEvent.Started. If it happened while loading a committed data source load_event will be webkit.types.LoadEvent.Committed. Since a load error causes the load operation to finish, the signal WebKitWebView::load-changed will always be emitted with webkit.types.LoadEvent.Finished event right after this one.

By default, if the signal is not handled, a stock error page will be displayed. You need to handle the signal if you want to provide your own error page.

class WebView
ulong
connectLoadFailed
(
T
)
(,
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.types.LoadEvent)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] == string)
)
)
&&
(
Parameters!T.length < 3 ||
(
ParameterStorageClassTuple!T[2] == ParameterStorageClass.none &&
is(Parameters!T[2] == glib.error.ErrorWrap)
)
)
&&
(
Parameters!T.length < 4 ||
(
ParameterStorageClassTuple!T[3] == ParameterStorageClass.none &&
is(Parameters!T[3] : webkit.web_view.WebView)
)
)
&&
Parameters!T.length < 5
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(webkit.types.LoadEvent loadEvent, string failingUri, glib.error.ErrorWrap error, webkit.web_view.WebView webView)

loadEvent the #WebKitLoadEvent of the load operation (optional)

failingUri the URI that failed to load (optional)

error the #GError that was triggered (optional)

webView the instance the signal is connected to (optional)

Returns true to stop other handlers from being invoked for the event. false to propagate the event further.

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID