ScriptWorld.connectWindowObjectCleared

gulong connectWindowObjectCleared(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkitwebprocessextension.web_page.WebPage))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkitwebprocessextension.frame.Frame))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkitwebprocessextension.script_world.ScriptWorld))) && Parameters!T.length < 4)

Connect to WindowObjectCleared signal.

Emitted when the JavaScript window object in a #WebKitScriptWorld has been cleared. This is the preferred place to set custom properties on the window object using the JavaScriptCore API. You can get the window object of frame from the JavaScript execution context of world that is returned by [webkitwebprocessextension.frame.Frame.getJsContextForScriptWorld].

Parameters

callbacksignal callback delegate or function to connect void callback(webkitwebprocessextension.web_page.WebPage page, webkitwebprocessextension.frame.Frame frame, webkitwebprocessextension.script_world.ScriptWorld scriptWorld) page a #WebKitWebPage (optional) frame the #WebKitFrame to which world belongs (optional) scriptWorld the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID