WebView.connectSubmitForm
gulong connectSubmitForm(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] : webkit.form_submission_request.FormSubmissionRequest)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView)))
&& Parameters!T.length < 3)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.
Parameters
callback | 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 | Yes.After to execute callback after default handler, No.After to execute before (default) |