Table of Contents

Class WebView

Namespace
WebKit.Internal
Assembly
WebKit-6.0.dll
public class WebView
Inheritance
WebView
Inherited Members

Methods

CallAsyncJavascriptFunction(IntPtr, NonNullableUtf8StringHandle, long, VariantHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method webkit_web_view_call_async_javascript_function. Version: 2.40

[Version("2.40")]
public static extern void CallAsyncJavascriptFunction(IntPtr webView, NonNullableUtf8StringHandle body, long length, VariantHandle arguments, NullableUtf8StringHandle worldName, NullableUtf8StringHandle sourceUri, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

body NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

length long

Transfer ownership: None Nullable: False

arguments VariantHandle

Transfer ownership: None Nullable: True

worldName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

sourceUri NullableUtf8StringHandle

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CallAsyncJavascriptFunctionFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method webkit_web_view_call_async_javascript_function_finish. Version: 2.40

[Version("2.40")]
public static extern IntPtr CallAsyncJavascriptFunctionFinish(IntPtr webView, IntPtr result, out ErrorOwnedHandle error)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

CanExecuteEditingCommand(IntPtr, NonNullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method webkit_web_view_can_execute_editing_command.

public static extern void CanExecuteEditingCommand(IntPtr webView, NonNullableUtf8StringHandle command, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

command NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

CanExecuteEditingCommandFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method webkit_web_view_can_execute_editing_command_finish.

public static extern bool CanExecuteEditingCommandFinish(IntPtr webView, IntPtr result, out ErrorOwnedHandle error)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

CanGoBack(IntPtr)

Calls native method webkit_web_view_can_go_back.

public static extern bool CanGoBack(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

CanGoForward(IntPtr)

Calls native method webkit_web_view_can_go_forward.

public static extern bool CanGoForward(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

CanShowMimeType(IntPtr, NonNullableUtf8StringHandle)

Calls native method webkit_web_view_can_show_mime_type.

public static extern bool CanShowMimeType(IntPtr webView, NonNullableUtf8StringHandle mimeType)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

mimeType NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

DownloadUri(IntPtr, NonNullableUtf8StringHandle)

Calls native method webkit_web_view_download_uri.

public static extern IntPtr DownloadUri(IntPtr webView, NonNullableUtf8StringHandle uri)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

EvaluateJavascript(IntPtr, NonNullableUtf8StringHandle, long, NullableUtf8StringHandle, NullableUtf8StringHandle, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method webkit_web_view_evaluate_javascript. Version: 2.40

[Version("2.40")]
public static extern void EvaluateJavascript(IntPtr webView, NonNullableUtf8StringHandle script, long length, NullableUtf8StringHandle worldName, NullableUtf8StringHandle sourceUri, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

script NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

length long

Transfer ownership: None Nullable: False

worldName NullableUtf8StringHandle

Transfer ownership: None Nullable: True

sourceUri NullableUtf8StringHandle

Transfer ownership: None Nullable: True

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

EvaluateJavascriptFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method webkit_web_view_evaluate_javascript_finish. Version: 2.40

[Version("2.40")]
public static extern IntPtr EvaluateJavascriptFinish(IntPtr webView, IntPtr result, out ErrorOwnedHandle error)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

ExecuteEditingCommand(IntPtr, NonNullableUtf8StringHandle)

Calls native method webkit_web_view_execute_editing_command.

public static extern void ExecuteEditingCommand(IntPtr webView, NonNullableUtf8StringHandle command)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

command NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

ExecuteEditingCommandWithArgument(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle)

Calls native method webkit_web_view_execute_editing_command_with_argument. Version: 2.10

[Version("2.10")]
public static extern void ExecuteEditingCommandWithArgument(IntPtr webView, NonNullableUtf8StringHandle command, NonNullableUtf8StringHandle argument)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

command NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

argument NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

GetAutomationPresentationType(IntPtr)

Calls native method webkit_web_view_get_automation_presentation_type. Version: 2.28

[Version("2.28")]
public static extern AutomationBrowsingContextPresentation GetAutomationPresentationType(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

AutomationBrowsingContextPresentation

Transfer ownership: None Nullable: False

GetBackForwardList(IntPtr)

Calls native method webkit_web_view_get_back_forward_list.

public static extern IntPtr GetBackForwardList(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetCameraCaptureState(IntPtr)

Calls native method webkit_web_view_get_camera_capture_state. Version: 2.34

[Version("2.34")]
public static extern MediaCaptureState GetCameraCaptureState(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

MediaCaptureState

Transfer ownership: None Nullable: False

GetContext(IntPtr)

Calls native method webkit_web_view_get_context.

public static extern IntPtr GetContext(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetCustomCharset(IntPtr)

Calls native method webkit_web_view_get_custom_charset.

public static extern NonNullableUtf8StringUnownedHandle GetCustomCharset(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetDefaultContentSecurityPolicy(IntPtr)

Calls native method webkit_web_view_get_default_content_security_policy. Version: 2.38

[Version("2.38")]
public static extern NullableUtf8StringUnownedHandle GetDefaultContentSecurityPolicy(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetDisplayCaptureState(IntPtr)

Calls native method webkit_web_view_get_display_capture_state. Version: 2.34

[Version("2.34")]
public static extern MediaCaptureState GetDisplayCaptureState(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

MediaCaptureState

Transfer ownership: None Nullable: False

GetEditorState(IntPtr)

Calls native method webkit_web_view_get_editor_state. Version: 2.10

[Version("2.10")]
public static extern IntPtr GetEditorState(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetEstimatedLoadProgress(IntPtr)

Calls native method webkit_web_view_get_estimated_load_progress.

public static extern double GetEstimatedLoadProgress(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GetFavicon(IntPtr)

Calls native method webkit_web_view_get_favicon.

public static extern IntPtr GetFavicon(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetFindController(IntPtr)

Calls native method webkit_web_view_get_find_controller.

public static extern IntPtr GetFindController(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function webkit_web_view_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInputMethodContext(IntPtr)

Calls native method webkit_web_view_get_input_method_context. Version: 2.28

[Version("2.28")]
public static extern IntPtr GetInputMethodContext(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetInspector(IntPtr)

Calls native method webkit_web_view_get_inspector.

public static extern IntPtr GetInspector(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetIsMuted(IntPtr)

Calls native method webkit_web_view_get_is_muted. Version: 2.30

[Version("2.30")]
public static extern bool GetIsMuted(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetIsWebProcessResponsive(IntPtr)

Calls native method webkit_web_view_get_is_web_process_responsive. Version: 2.34

[Version("2.34")]
public static extern bool GetIsWebProcessResponsive(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetMainResource(IntPtr)

Calls native method webkit_web_view_get_main_resource.

public static extern IntPtr GetMainResource(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetMicrophoneCaptureState(IntPtr)

Calls native method webkit_web_view_get_microphone_capture_state. Version: 2.34

[Version("2.34")]
public static extern MediaCaptureState GetMicrophoneCaptureState(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

MediaCaptureState

Transfer ownership: None Nullable: False

GetNetworkSession(IntPtr)

Calls native method webkit_web_view_get_network_session. Version: 2.40

[Version("2.40")]
public static extern IntPtr GetNetworkSession(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetPageId(IntPtr)

Calls native method webkit_web_view_get_page_id.

public static extern ulong GetPageId(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

ulong

Transfer ownership: None Nullable: False

GetSessionState(IntPtr)

Calls native method webkit_web_view_get_session_state. Version: 2.12

[Version("2.12")]
public static extern WebViewSessionStateOwnedHandle GetSessionState(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

WebViewSessionStateOwnedHandle

Transfer ownership: Full Nullable: False

GetSettings(IntPtr)

Calls native method webkit_web_view_get_settings.

public static extern IntPtr GetSettings(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetSnapshot(IntPtr, SnapshotRegion, SnapshotOptions, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method webkit_web_view_get_snapshot.

public static extern void GetSnapshot(IntPtr webView, SnapshotRegion region, SnapshotOptions options, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

region SnapshotRegion

Transfer ownership: None Nullable: False

options SnapshotOptions

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

GetSnapshotFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method webkit_web_view_get_snapshot_finish.

public static extern IntPtr GetSnapshotFinish(IntPtr webView, IntPtr result, out ErrorOwnedHandle error)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

GetTitle(IntPtr)

Calls native method webkit_web_view_get_title.

public static extern NonNullableUtf8StringUnownedHandle GetTitle(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetTlsInfo(IntPtr, out IntPtr, out TlsCertificateFlags)

Calls native method webkit_web_view_get_tls_info.

public static extern bool GetTlsInfo(IntPtr webView, out IntPtr certificate, out TlsCertificateFlags errors)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

certificate IntPtr

Transfer ownership: None Nullable: False

errors TlsCertificateFlags

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetUri(IntPtr)

Calls native method webkit_web_view_get_uri.

public static extern NonNullableUtf8StringUnownedHandle GetUri(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetUserContentManager(IntPtr)

Calls native method webkit_web_view_get_user_content_manager. Version: 2.6

[Version("2.6")]
public static extern IntPtr GetUserContentManager(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetWebExtensionMode(IntPtr)

Calls native method webkit_web_view_get_web_extension_mode. Version: 2.38

[Version("2.38")]
public static extern WebExtensionMode GetWebExtensionMode(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

WebExtensionMode

Transfer ownership: None Nullable: False

GetWebsitePolicies(IntPtr)

Calls native method webkit_web_view_get_website_policies. Version: 2.30

[Version("2.30")]
public static extern IntPtr GetWebsitePolicies(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetWindowProperties(IntPtr)

Calls native method webkit_web_view_get_window_properties.

public static extern IntPtr GetWindowProperties(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetZoomLevel(IntPtr)

Calls native method webkit_web_view_get_zoom_level.

public static extern double GetZoomLevel(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

double

Transfer ownership: None Nullable: False

GoBack(IntPtr)

Calls native method webkit_web_view_go_back.

public static extern void GoBack(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

GoForward(IntPtr)

Calls native method webkit_web_view_go_forward.

public static extern void GoForward(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

GoToBackForwardListItem(IntPtr, IntPtr)

Calls native method webkit_web_view_go_to_back_forward_list_item.

public static extern void GoToBackForwardListItem(IntPtr webView, IntPtr listItem)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

listItem IntPtr

Transfer ownership: None Nullable: False

IsControlledByAutomation(IntPtr)

Calls native method webkit_web_view_is_controlled_by_automation. Version: 2.18

[Version("2.18")]
public static extern bool IsControlledByAutomation(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsEditable(IntPtr)

Calls native method webkit_web_view_is_editable. Version: 2.8

[Version("2.8")]
public static extern bool IsEditable(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsLoading(IntPtr)

Calls native method webkit_web_view_is_loading.

public static extern bool IsLoading(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

IsPlayingAudio(IntPtr)

Calls native method webkit_web_view_is_playing_audio. Version: 2.8

[Version("2.8")]
public static extern bool IsPlayingAudio(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

LoadAlternateHtml(IntPtr, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NullableUtf8StringHandle)

Calls native method webkit_web_view_load_alternate_html.

public static extern void LoadAlternateHtml(IntPtr webView, NonNullableUtf8StringHandle content, NonNullableUtf8StringHandle contentUri, NullableUtf8StringHandle baseUri)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

content NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

contentUri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

baseUri NullableUtf8StringHandle

Transfer ownership: None Nullable: True

LoadBytes(IntPtr, BytesHandle, NullableUtf8StringHandle, NullableUtf8StringHandle, NullableUtf8StringHandle)

Calls native method webkit_web_view_load_bytes. Version: 2.6

[Version("2.6")]
public static extern void LoadBytes(IntPtr webView, BytesHandle bytes, NullableUtf8StringHandle mimeType, NullableUtf8StringHandle encoding, NullableUtf8StringHandle baseUri)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

bytes BytesHandle

Transfer ownership: None Nullable: False

mimeType NullableUtf8StringHandle

Transfer ownership: None Nullable: True

encoding NullableUtf8StringHandle

Transfer ownership: None Nullable: True

baseUri NullableUtf8StringHandle

Transfer ownership: None Nullable: True

LoadHtml(IntPtr, NonNullableUtf8StringHandle, NullableUtf8StringHandle)

Calls native method webkit_web_view_load_html.

public static extern void LoadHtml(IntPtr webView, NonNullableUtf8StringHandle content, NullableUtf8StringHandle baseUri)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

content NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

baseUri NullableUtf8StringHandle

Transfer ownership: None Nullable: True

LoadPlainText(IntPtr, NonNullableUtf8StringHandle)

Calls native method webkit_web_view_load_plain_text.

public static extern void LoadPlainText(IntPtr webView, NonNullableUtf8StringHandle plainText)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

plainText NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

LoadRequest(IntPtr, IntPtr)

Calls native method webkit_web_view_load_request.

public static extern void LoadRequest(IntPtr webView, IntPtr request)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

request IntPtr

Transfer ownership: None Nullable: False

LoadUri(IntPtr, NonNullableUtf8StringHandle)

Calls native method webkit_web_view_load_uri.

public static extern void LoadUri(IntPtr webView, NonNullableUtf8StringHandle uri)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

New()

Calls native constructor webkit_web_view_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: None Nullable: False

Reload(IntPtr)

Calls native method webkit_web_view_reload.

public static extern void Reload(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

ReloadBypassCache(IntPtr)

Calls native method webkit_web_view_reload_bypass_cache.

public static extern void ReloadBypassCache(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

RestoreSessionState(IntPtr, WebViewSessionStateHandle)

Calls native method webkit_web_view_restore_session_state. Version: 2.12

[Version("2.12")]
public static extern void RestoreSessionState(IntPtr webView, WebViewSessionStateHandle state)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

state WebViewSessionStateHandle

Transfer ownership: None Nullable: False

Save(IntPtr, SaveMode, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method webkit_web_view_save.

public static extern void Save(IntPtr webView, SaveMode saveMode, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

saveMode SaveMode

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SaveFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method webkit_web_view_save_finish.

public static extern IntPtr SaveFinish(IntPtr webView, IntPtr result, out ErrorOwnedHandle error)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SaveToFile(IntPtr, IntPtr, SaveMode, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method webkit_web_view_save_to_file.

public static extern void SaveToFile(IntPtr webView, IntPtr file, SaveMode saveMode, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

file IntPtr

Transfer ownership: None Nullable: False

saveMode SaveMode

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SaveToFileFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method webkit_web_view_save_to_file_finish.

public static extern bool SaveToFileFinish(IntPtr webView, IntPtr result, out ErrorOwnedHandle error)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SendMessageToPage(IntPtr, IntPtr, IntPtr, AsyncReadyCallback, IntPtr)

Calls native method webkit_web_view_send_message_to_page. Version: 2.28

[Version("2.28")]
public static extern void SendMessageToPage(IntPtr webView, IntPtr message, IntPtr cancellable, AsyncReadyCallback callback, IntPtr userData)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

message IntPtr

Transfer ownership: None Nullable: False

cancellable IntPtr

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

SendMessageToPageFinish(IntPtr, IntPtr, out ErrorOwnedHandle)

Calls native method webkit_web_view_send_message_to_page_finish. Version: 2.28

[Version("2.28")]
public static extern IntPtr SendMessageToPageFinish(IntPtr webView, IntPtr result, out ErrorOwnedHandle error)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

result IntPtr

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

SetBackgroundColor(IntPtr, RGBAHandle)

Calls native method webkit_web_view_set_background_color. Version: 2.8

[Version("2.8")]
public static extern void SetBackgroundColor(IntPtr webView, RGBAHandle rgba)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

rgba RGBAHandle

Transfer ownership: None Nullable: False

SetCameraCaptureState(IntPtr, MediaCaptureState)

Calls native method webkit_web_view_set_camera_capture_state. Version: 2.34

[Version("2.34")]
public static extern void SetCameraCaptureState(IntPtr webView, MediaCaptureState state)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

state MediaCaptureState

Transfer ownership: None Nullable: False

SetCorsAllowlist(IntPtr, Utf8StringArrayNullTerminatedHandle)

Calls native method webkit_web_view_set_cors_allowlist. Version: 2.34

[Version("2.34")]
public static extern void SetCorsAllowlist(IntPtr webView, Utf8StringArrayNullTerminatedHandle allowlist)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

allowlist Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

SetCustomCharset(IntPtr, NullableUtf8StringHandle)

Calls native method webkit_web_view_set_custom_charset.

public static extern void SetCustomCharset(IntPtr webView, NullableUtf8StringHandle charset)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

charset NullableUtf8StringHandle

Transfer ownership: None Nullable: True

SetDisplayCaptureState(IntPtr, MediaCaptureState)

Calls native method webkit_web_view_set_display_capture_state. Version: 2.34

[Version("2.34")]
public static extern void SetDisplayCaptureState(IntPtr webView, MediaCaptureState state)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

state MediaCaptureState

Transfer ownership: None Nullable: False

SetEditable(IntPtr, bool)

Calls native method webkit_web_view_set_editable. Version: 2.8

[Version("2.8")]
public static extern void SetEditable(IntPtr webView, bool editable)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

editable bool

Transfer ownership: None Nullable: False

SetInputMethodContext(IntPtr, IntPtr)

Calls native method webkit_web_view_set_input_method_context. Version: 2.28

[Version("2.28")]
public static extern void SetInputMethodContext(IntPtr webView, IntPtr context)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

context IntPtr

Transfer ownership: None Nullable: True

SetIsMuted(IntPtr, bool)

Calls native method webkit_web_view_set_is_muted. Version: 2.30

[Version("2.30")]
public static extern void SetIsMuted(IntPtr webView, bool muted)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

muted bool

Transfer ownership: None Nullable: False

SetMicrophoneCaptureState(IntPtr, MediaCaptureState)

Calls native method webkit_web_view_set_microphone_capture_state. Version: 2.34

[Version("2.34")]
public static extern void SetMicrophoneCaptureState(IntPtr webView, MediaCaptureState state)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

state MediaCaptureState

Transfer ownership: None Nullable: False

SetSettings(IntPtr, IntPtr)

Calls native method webkit_web_view_set_settings.

public static extern void SetSettings(IntPtr webView, IntPtr settings)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

settings IntPtr

Transfer ownership: None Nullable: False

SetZoomLevel(IntPtr, double)

Calls native method webkit_web_view_set_zoom_level.

public static extern void SetZoomLevel(IntPtr webView, double zoomLevel)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

zoomLevel double

Transfer ownership: None Nullable: False

StopLoading(IntPtr)

Calls native method webkit_web_view_stop_loading.

public static extern void StopLoading(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

TerminateWebProcess(IntPtr)

Calls native method webkit_web_view_terminate_web_process. Version: 2.34

[Version("2.34")]
public static extern void TerminateWebProcess(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False

TryClose(IntPtr)

Calls native method webkit_web_view_try_close. Version: 2.12

[Version("2.12")]
public static extern void TryClose(IntPtr webView)

Parameters

webView IntPtr

Transfer ownership: None Nullable: False