WebKit2.WebView.new_with_settings

function new_with_settings(settings: WebKit2.Settings): Gtk.Widget {
    // Gjs wrapper for webkit_web_view_new_with_settings()
}
  

Creates a new WebKit2.WebView with the given WebKit2.Settings. See also WebKit2.WebView.new_with_context, and WebKit2.WebView.new_with_user_content_manager.

Since 2.6

settings

a WebKit2.Settings

Returns

The newly created WebKit2.WebView widget