WebView.connectSubmitForm

Connect to SubmitForm signal.

This signal is emitted when a form is about to be submitted. The request argument passed contains information about the text fields of the form. This is typically used to store login information that can be used later to pre-fill the form. The form will not be submitted until webkit.form_submission_request.FormSubmissionRequest.submit is called.

It is possible to handle the form submission request asynchronously, by simply calling gobject.object.ObjectWrap.ref_ on the request argument and calling webkit.form_submission_request.FormSubmissionRequest.submit when done to continue with the form submission. If the last reference is removed on a #WebKitFormSubmissionRequest and the form has not been submitted, webkit.form_submission_request.FormSubmissionRequest.submit will be called.

class WebView
ulong
connectSubmitForm
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : webkit.web_view.WebView)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

void callback(webkit.form_submission_request.FormSubmissionRequest request, webkit.web_view.WebView webView)

request a #WebKitFormSubmissionRequest (optional)

webView the instance the signal is connected to (optional)

after Flag!"After"

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

Return Value

Type: ulong

Signal ID