webkit.web_view

Module for [WebView] class

Types 3

The central class of the WPE WebKit and WebKitGTK APIs.

#WebKitWebView is the central class of the WPE WebKit and WebKitGTK APIs. It is responsible for managing the drawing of the content and forwarding of events. You can load any URI into the #WebKitWebView or a data string. With #WebKitSettings you can control various aspects of the rendering and loading of the content.

Note that in WebKitGTK, #WebKitWebView is scrollable by itself, so you don't need to embed it in a #GtkScrolledWindow.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
WebView self() nothrowReturns `this`, for use in `with` statements.
WebViewGidBuilder builder() static nothrowGet builder for [webkit.web_view.WebView] Returns: New builder object
webkit.types.AutomationBrowsingContextPresentation automationPresentationType() @property nothrowGet `automationPresentationType` property. Returns: The #WebKitAutomationBrowsingContextPresentation of #WebKitWebView. This should only be used when creating a new #WebKitWebView as a response to ...
webkit.types.MediaCaptureState cameraCaptureState() @property nothrowGet `cameraCaptureState` property. Returns: Capture state of the camera device. Whenever the user grants a media-request sent by the web page, requesting video capture capabilities (`navigator.medi...
void cameraCaptureState(webkit.types.MediaCaptureState propval) @property nothrowSet `cameraCaptureState` property. Params: propval = Capture state of the camera device. Whenever the user grants a media-request sent by the web page, requesting video capture capabilities (`navig...
string defaultContentSecurityPolicy() @property nothrowGet `defaultContentSecurityPolicy` property. Returns: The default Content-Security-Policy used by the webview as if it were set by an HTTP header.
webkit.types.MediaCaptureState displayCaptureState() @property nothrowGet `displayCaptureState` property. Returns: Capture state of the display device. Whenever the user grants a media-request sent by the web page, requesting screencasting capabilities (`navigator.me...
void displayCaptureState(webkit.types.MediaCaptureState propval) @property nothrowSet `displayCaptureState` property. Params: propval = Capture state of the display device. Whenever the user grants a media-request sent by the web page, requesting screencasting capabilities (`nav...
bool editable() @property nothrowGet `editable` property. Returns: Whether the pages loaded inside #WebKitWebView are editable. For more information see [webkit.web_view.WebView.setEditable].
void editable(bool propval) @property nothrowSet `editable` property. Params: propval = Whether the pages loaded inside #WebKitWebView are editable. For more information see [webkit.web_view.WebView.setEditable].
double estimatedLoadProgress() @property nothrowGet `estimatedLoadProgress` property. Returns: An estimate of the percent completion for the current loading operation. This value will range from 0.0 to 1.0 and, once a load completes, will remain...
gdk.texture.Texture favicon() @property nothrowGet `favicon` property. Returns: The favicon currently associated to the #WebKitWebView. See [webkit.web_view.WebView.getFavicon] for more details.
bool isMuted() @property nothrowGet `isMuted` property. Returns: Whether the #WebKitWebView audio is muted. When true, audio is silenced. It may still be playing, i.e. #WebKitWebView:is-playing-audio may be true.
void isMuted(bool propval) @property nothrowSet `isMuted` property. Params: propval = Whether the #WebKitWebView audio is muted. When true, audio is silenced. It may still be playing, i.e. #WebKitWebView:is-playing-audio may be true.
bool isWebProcessResponsive() @property nothrowGet `isWebProcessResponsive` property. Returns: Whether the web process currently associated to the #WebKitWebView is responsive.
webkit.types.MediaCaptureState microphoneCaptureState() @property nothrowGet `microphoneCaptureState` property. Returns: Capture state of the microphone device. Whenever the user grants a media-request sent by the web page, requesting audio capture capabilities (`naviga...
void microphoneCaptureState(webkit.types.MediaCaptureState propval) @property nothrowSet `microphoneCaptureState` property. Params: propval = Capture state of the microphone device. Whenever the user grants a media-request sent by the web page, requesting audio capture capabilities...
webkit.network_session.NetworkSession networkSession() @property nothrowGet `networkSession` property. Returns: The #WebKitNetworkSession of the view
ulong pageId() @property nothrowGet `pageId` property. Returns: The identifier of the #WebKitWebPage corresponding to the #WebKitWebView.
void settings(webkit.settings.Settings propval) @property nothrowSet `settings` property. Params: propval = The #WebKitSettings of the view.
string title() @property nothrowGet `title` property. Returns: The main frame document title of this #WebKitWebView. If the title has not been received yet, it will be null.
string uri() @property nothrowGet `uri` property. Returns: The current active URI of the #WebKitWebView. See [webkit.web_view.WebView.getUri] for more details.
webkit.user_content_manager.UserContentManager userContentManager() @property nothrowGet `userContentManager` property. Returns: The #WebKitUserContentManager of the view.
webkit.web_context.WebContext webContext() @property nothrowGet `webContext` property. Returns: The #WebKitWebContext of the view.
webkit.types.WebExtensionMode webExtensionMode() @property nothrowGet `webExtensionMode` property. Returns: This configures @web_view to treat the content as a WebExtension.
webkit.website_policies.WebsitePolicies websitePolicies() @property nothrowGet `websitePolicies` property. Returns: The #WebKitWebsitePolicies for the view.
double zoomLevel() @property nothrowGet `zoomLevel` property. Returns: The zoom level of the #WebKitWebView content. See [webkit.web_view.WebView.setZoomLevel] for more details.
void zoomLevel(double propval) @property nothrowSet `zoomLevel` property. Params: propval = The zoom level of the #WebKitWebView content. See [webkit.web_view.WebView.setZoomLevel] for more details.
void callAsyncJavascriptFunction(string body_, glib.variant.Variant arguments = null, string worldName = null, string sourceUri = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously call body with arguments in the script world with name world_name of the main frame current context in web_view. The arguments values must be one of the following types, or contain o...
javascriptcore.value.Value callAsyncJavascriptFunctionFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.web_view.WebView.callAsyncJavascriptFunction].
void canExecuteEditingCommand(string command, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously check if it is possible to execute the given editing command.
bool canExecuteEditingCommandFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.web_view.WebView.canExecuteEditingCommand].
bool canGoBack() nothrowDetermines whether web_view has a previous history item. Returns: true if able to move back or false otherwise.
bool canGoForward() nothrowDetermines whether web_view has a next history item. Returns: true if able to move forward or false otherwise.
bool canShowMimeType(string mimeType) nothrowWhether or not a MIME type can be displayed in web_view.
webkit.download.Download downloadUri(string uri) nothrowRequests downloading of the specified URI string for web_view.
void evaluateJavascript(string script, string worldName = null, string sourceUri = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously evaluate script in the script world with name world_name of the main frame current context in web_view. If world_name is null, the default world is used. Any value that is not null i...
javascriptcore.value.Value evaluateJavascriptFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.web_view.WebView.evaluateJavascript].
void executeEditingCommand(string command) nothrowRequest to execute the given command for web_view.
void executeEditingCommandWithArgument(string command, string argument) nothrowRequest to execute the given command with argument for web_view.
webkit.types.AutomationBrowsingContextPresentation getAutomationPresentationType() nothrowGet the presentation type of #WebKitWebView when created for automation. Returns: a #WebKitAutomationBrowsingContextPresentation.
webkit.back_forward_list.BackForwardList getBackForwardList() nothrowObtains the #WebKitBackForwardList associated with the given #WebKitWebView.
void getBackgroundColor(out gdk.rgba.RGBA rgba) nothrowGets the color that is used to draw the web_view background.
webkit.types.MediaCaptureState getCameraCaptureState() nothrowGet the camera capture state of a #WebKitWebView. Returns: The #WebKitMediaCaptureState of the camera device. If #WebKitSettings:enable-mediastream is false, this method will return [webkit.types.M...
webkit.web_context.WebContext getContext() nothrowGets the web context of web_view. Returns: the #WebKitWebContext of the view
string getCustomCharset() nothrowReturns the current custom character encoding name of web_view. Returns: the current custom character encoding name or null if no custom character encoding has been set.
string getDefaultContentSecurityPolicy() nothrowGets the configured default Content-Security-Policy. Returns: The default policy or null
webkit.types.MediaCaptureState getDisplayCaptureState() nothrowGet the display capture state of a #WebKitWebView. Returns: The #WebKitMediaCaptureState of the display device. If #WebKitSettings:enable-mediastream is false, this method will return [webkit.types...
webkit.editor_state.EditorState getEditorState() nothrowGets the web editor state of web_view. Returns: the #WebKitEditorState of the view
double getEstimatedLoadProgress() nothrowGets the value of the #WebKitWebView:estimated-load-progress property.
gdk.texture.Texture getFavicon() nothrowReturns favicon currently associated to web_view.
webkit.find_controller.FindController getFindController() nothrowGets the #WebKitFindController.
webkit.input_method_context.InputMethodContext getInputMethodContext() nothrowGet the #WebKitInputMethodContext currently in use by web_view.
webkit.web_inspector.WebInspector getInspector() nothrowGet the #WebKitWebInspector associated to web_view Returns: the #WebKitWebInspector of web_view
bool getIsMuted() nothrowGets the mute state of web_view. Returns: true if web_view audio is muted or false is audio is not muted.
bool getIsWebProcessResponsive() nothrowGet whether the current web process of a #WebKitWebView is responsive. Returns: true if the web process attached to web_view is responsive, or false otherwise.
webkit.web_resource.WebResource getMainResource() nothrowReturn the main resource of web_view. Returns: the main #WebKitWebResource of the view or null if nothing has been loaded.
webkit.types.MediaCaptureState getMicrophoneCaptureState() nothrowGet the microphone capture state of a #WebKitWebView. Returns: The #WebKitMediaCaptureState of the microphone device. If #WebKitSettings:enable-mediastream is false, this method will return [webkit...
webkit.network_session.NetworkSession getNetworkSession() nothrowGet the #WebKitNetworkSession associated to web_view. Returns: a #WebKitNetworkSession
ulong getPageId() nothrowGet the identifier of the #WebKitWebPage corresponding to the #WebKitWebView Returns: the page ID of web_view.
webkit.web_view_session_state.WebViewSessionState getSessionState() nothrowGets the current session state of web_view Returns: a #WebKitWebViewSessionState
webkit.settings.Settings getSettings() nothrowGets the #WebKitSettings currently applied to web_view.
void getSnapshot(webkit.types.SnapshotRegion region, webkit.types.SnapshotOptions options, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously retrieves a snapshot of web_view for region.
gdk.texture.Texture getSnapshotFinish(gio.async_result.AsyncResult result)Finishes an asynchronous operation started with [webkit.web_view.WebView.getSnapshot].
string getTitle() nothrowGets the value of the #WebKitWebView:title property.
bool getTlsInfo(out gio.tls_certificate.TlsCertificate certificate, out gio.types.TlsCertificateFlags errors) nothrowRetrieves the #GTlsCertificate associated with the main resource of web_view.
string getUri() nothrowReturns the current active URI of web_view.
webkit.user_content_manager.UserContentManager getUserContentManager() nothrowGets the user content manager associated to web_view. Returns: the #WebKitUserContentManager associated with the view
webkit.types.WebExtensionMode getWebExtensionMode() nothrowGet the view's #WebKitWebExtensionMode. Returns: the #WebKitWebExtensionMode
webkit.website_policies.WebsitePolicies getWebsitePolicies() nothrowGets the default website policies.
webkit.window_properties.WindowProperties getWindowProperties() nothrowGet the #WebKitWindowProperties object.
double getZoomLevel() nothrowSet the zoom level of web_view.
void goBack() nothrowLoads the previous history item.
void goForward() nothrowLoads the next history item.
void goToBackForwardListItem(webkit.back_forward_list_item.BackForwardListItem listItem) nothrowLoads the specific history item list_item.
bool isControlledByAutomation() nothrowGet whether a #WebKitWebView was created with #WebKitWebView:is-controlled-by-automation property enabled.
bool isEditable() nothrowGets whether the user is allowed to edit the HTML document.
bool isLoading() nothrowGets the value of the #WebKitWebView:is-loading property.
bool isPlayingAudio() nothrowGets the value of the #WebKitWebView:is-playing-audio property.
void loadAlternateHtml(string content, string contentUri, string baseUri = null) nothrowLoad the given content string for the URI content_uri.
void loadBytes(glib.bytes.Bytes bytes, string mimeType = null, string encoding = null, string baseUri = null) nothrowLoad the specified bytes into web_view using the given mime_type and encoding.
void loadHtml(string content, string baseUri = null) nothrowLoad the given content string with the specified base_uri.
void loadPlainText(string plainText) nothrowLoad the specified plain_text string into web_view.
void loadRequest(webkit.urirequest.URIRequest request) nothrowRequests loading of the specified #WebKitURIRequest.
void loadUri(string uri) nothrowRequests loading of the specified URI string.
void reload() nothrowReloads the current contents of web_view.
void reloadBypassCache() nothrowReloads the current contents of web_view without using any cached data.
void restoreSessionState(webkit.web_view_session_state.WebViewSessionState state) nothrowRestore the web_view session state from state
void save(webkit.types.SaveMode saveMode, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously save the current web page.
gio.input_stream.InputStream saveFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.web_view.WebView.save].
void saveToFile(gio.file.File file, webkit.types.SaveMode saveMode, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously save the current web page.
bool saveToFileFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.web_view.WebView.saveToFile].
void sendMessageToPage(webkit.user_message.UserMessage message, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowSend message to the #WebKitWebPage corresponding to web_view.
webkit.user_message.UserMessage sendMessageToPageFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.web_view.WebView.sendMessageToPage].
void setBackgroundColor(gdk.rgba.RGBA rgba) nothrowSets the color that will be used to draw the web_view background.
void setCameraCaptureState(webkit.types.MediaCaptureState state) nothrowSet the camera capture state of a #WebKitWebView.
void setCorsAllowlist(string[] allowlist = null) nothrowSets the allowlist for CORS.
void setCustomCharset(string charset = null) nothrowSets the current custom character encoding override of web_view.
void setDisplayCaptureState(webkit.types.MediaCaptureState state) nothrowSet the display capture state of a #WebKitWebView.
void setEditable(bool editable) nothrowSets whether the user is allowed to edit the HTML document.
void setInputMethodContext(webkit.input_method_context.InputMethodContext context = null) nothrowSet the #WebKitInputMethodContext to be used by web_view.
void setIsMuted(bool muted) nothrowSets the mute state of web_view.
void setMicrophoneCaptureState(webkit.types.MediaCaptureState state) nothrowSet the microphone capture state of a #WebKitWebView.
void setSettings(webkit.settings.Settings settings) nothrowSets the #WebKitSettings to be applied to web_view.
void setZoomLevel(double zoomLevel) nothrowSet the zoom level of web_view.
void stopLoading() nothrowStops any ongoing loading operation in web_view.
void terminateWebProcess() nothrowTerminates the web process associated to web_view.
void tryClose() nothrowTries to close the web_view.
gulong connectAuthenticate(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.authentication_request.AuthenticationRequest))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `Authenticate` signal.
gulong connectClose(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.web_view.WebView))) && Parameters!T.length < 2) nothrowConnect to `Close` signal.
gulong connectContextMenu(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.context_menu.ContextMenu))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.hit_test_result.HitTestResult))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkit.web_view.WebView))) && Parameters!T.length < 4) nothrowConnect to `ContextMenu` signal.
gulong connectContextMenuDismissed(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.web_view.WebView))) && Parameters!T.length < 2) nothrowConnect to `ContextMenuDismissed` signal.
gulong connectCreate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T : gtk.widget.Widget) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == webkit.navigation_action.NavigationAction))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `Create` signal.
gulong connectDecidePolicy(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.policy_decision.PolicyDecision))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == webkit.types.PolicyDecisionType))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkit.web_view.WebView))) && Parameters!T.length < 4) nothrowConnect to `DecidePolicy` signal.
gulong connectEnterFullscreen(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.web_view.WebView))) && Parameters!T.length < 2) nothrowConnect to `EnterFullscreen` signal.
gulong connectInsecureContentDetected(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.types.InsecureContentEvent))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `InsecureContentDetected` signal.
gulong connectLeaveFullscreen(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.web_view.WebView))) && Parameters!T.length < 2) nothrowConnect to `LeaveFullscreen` signal.
gulong connectLoadChanged(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.types.LoadEvent))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `LoadChanged` signal.
gulong connectLoadFailed(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.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) nothrowConnect to `LoadFailed` signal.
gulong connectLoadFailedWithTlsErrors(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] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.tls_certificate.TlsCertificate))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gio.types.TlsCertificateFlags))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : webkit.web_view.WebView))) && Parameters!T.length < 5) nothrowConnect to `LoadFailedWithTlsErrors` signal.
gulong connectMouseTargetChanged(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.hit_test_result.HitTestResult))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == uint))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkit.web_view.WebView))) && Parameters!T.length < 4) nothrowConnect to `MouseTargetChanged` signal.
gulong connectPermissionRequest(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.permission_request.PermissionRequest))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `PermissionRequest` signal.
gulong connectPrint(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.print_operation.PrintOperation))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `Print` signal.
gulong connectQueryPermissionState(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.permission_state_query.PermissionStateQuery))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `QueryPermissionState` signal.
gulong connectReadyToShow(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.web_view.WebView))) && Parameters!T.length < 2) nothrowConnect to `ReadyToShow` signal.
gulong connectResourceLoadStarted(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.web_resource.WebResource))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.urirequest.URIRequest))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkit.web_view.WebView))) && Parameters!T.length < 4) nothrowConnect to `ResourceLoadStarted` signal.
gulong connectRunAsModal(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.web_view.WebView))) && Parameters!T.length < 2) nothrowConnect to `RunAsModal` signal.
gulong connectRunColorChooser(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.color_chooser_request.ColorChooserRequest))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `RunColorChooser` signal.
gulong connectRunFileChooser(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.file_chooser_request.FileChooserRequest))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `RunFileChooser` signal.
gulong connectScriptDialog(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.script_dialog.ScriptDialog))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `ScriptDialog` signal.
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) nothrowConnect to `ShowNotification` signal.
gulong connectShowOptionMenu(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.option_menu.OptionMenu))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gdk.rectangle.Rectangle))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkit.web_view.WebView))) && Parameters!T.length < 4) nothrowConnect to `ShowOptionMenu` signal.
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) nothrowConnect to `SubmitForm` signal.
gulong connectUserMessageReceived(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.user_message.UserMessage))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `UserMessageReceived` signal.
gulong connectWebProcessTerminated(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.types.WebProcessTerminationReason))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.web_view.WebView))) && Parameters!T.length < 3) nothrowConnect to `WebProcessTerminated` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #WebKitWebView with the default #WebKitWebContext.

Fluent builder implementation template for webkit.web_view.WebView

Methods
T automationPresentationType(webkit.types.AutomationBrowsingContextPresentation propval) nothrowSet `automationPresentationType` property. Params: propval = The #WebKitAutomationBrowsingContextPresentation of #WebKitWebView. This should only be used when creating a new #WebKitWebView as a res...
T cameraCaptureState(webkit.types.MediaCaptureState propval) nothrowSet `cameraCaptureState` property. Params: propval = Capture state of the camera device. Whenever the user grants a media-request sent by the web page, requesting video capture capabilities (`navig...
T defaultContentSecurityPolicy(string propval) nothrowSet `defaultContentSecurityPolicy` property. Params: propval = The default Content-Security-Policy used by the webview as if it were set by an HTTP header.
T displayCaptureState(webkit.types.MediaCaptureState propval) nothrowSet `displayCaptureState` property. Params: propval = Capture state of the display device. Whenever the user grants a media-request sent by the web page, requesting screencasting capabilities (`nav...
T editable(bool propval) nothrowSet `editable` property. Params: propval = Whether the pages loaded inside #WebKitWebView are editable. For more information see [webkit.web_view.WebView.setEditable]. Returns: Builder instance for...
T isMuted(bool propval) nothrowSet `isMuted` property. Params: propval = Whether the #WebKitWebView audio is muted. When true, audio is silenced. It may still be playing, i.e. #WebKitWebView:is-playing-audio may be true. Returns...
T microphoneCaptureState(webkit.types.MediaCaptureState propval) nothrowSet `microphoneCaptureState` property. Params: propval = Capture state of the microphone device. Whenever the user grants a media-request sent by the web page, requesting audio capture capabilities...
T networkSession(webkit.network_session.NetworkSession propval) nothrowSet `networkSession` property. Params: propval = The #WebKitNetworkSession of the view Returns: Builder instance for fluent chaining
T relatedView(webkit.web_view.WebView propval) nothrowSet `relatedView` property. Params: propval = The related #WebKitWebView used when creating the view to share the same web process and network session. This property is not readable because the rel...
T settings(webkit.settings.Settings propval) nothrowSet `settings` property. Params: propval = The #WebKitSettings of the view. Returns: Builder instance for fluent chaining
T userContentManager(webkit.user_content_manager.UserContentManager propval) nothrowSet `userContentManager` property. Params: propval = The #WebKitUserContentManager of the view. Returns: Builder instance for fluent chaining
T webContext(webkit.web_context.WebContext propval) nothrowSet `webContext` property. Params: propval = The #WebKitWebContext of the view. Returns: Builder instance for fluent chaining
T webExtensionMode(webkit.types.WebExtensionMode propval) nothrowSet `webExtensionMode` property. Params: propval = This configures @web_view to treat the content as a WebExtension.
T websitePolicies(webkit.website_policies.WebsitePolicies propval) nothrowSet `websitePolicies` property. Params: propval = The #WebKitWebsitePolicies for the view. Returns: Builder instance for fluent chaining
T zoomLevel(double propval) nothrowSet `zoomLevel` property. Params: propval = The zoom level of the #WebKitWebView content. See [webkit.web_view.WebView.setZoomLevel] for more details. Returns: Builder instance for fluent chaining

Fluent builder for webkit.web_view.WebView

Methods
WebView build() nothrowCreate object from builder. Returns: New object