Table of Contents

Class WebContext

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

Methods

AddPathToSandbox(IntPtr, NonNullablePlatformStringHandle, bool)

Calls native method webkit_web_context_add_path_to_sandbox. Version: 2.26

[Version("2.26")]
public static extern void AddPathToSandbox(IntPtr context, NonNullablePlatformStringHandle path, bool readOnly)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

path NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

readOnly bool

Transfer ownership: None Nullable: False

GetCacheModel(IntPtr)

Calls native method webkit_web_context_get_cache_model.

public static extern CacheModel GetCacheModel(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

CacheModel

Transfer ownership: None Nullable: False

GetDefault()

Calls native function webkit_web_context_get_default.

public static extern IntPtr GetDefault()

Returns

IntPtr

Transfer ownership: None Nullable: False

GetGType()

Calls native function webkit_web_context_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetGeolocationManager(IntPtr)

Calls native method webkit_web_context_get_geolocation_manager. Version: 2.26

[Version("2.26")]
public static extern IntPtr GetGeolocationManager(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetNetworkSessionForAutomation(IntPtr)

Calls native method webkit_web_context_get_network_session_for_automation. Version: 2.40

[Version("2.40")]
public static extern IntPtr GetNetworkSessionForAutomation(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetSecurityManager(IntPtr)

Calls native method webkit_web_context_get_security_manager.

public static extern IntPtr GetSecurityManager(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

GetSpellCheckingEnabled(IntPtr)

Calls native method webkit_web_context_get_spell_checking_enabled.

public static extern bool GetSpellCheckingEnabled(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetSpellCheckingLanguages(IntPtr)

Calls native method webkit_web_context_get_spell_checking_languages.

public static extern Utf8StringArrayNullTerminatedUnownedHandle GetSpellCheckingLanguages(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedUnownedHandle

Transfer ownership: None Nullable: False

GetTimeZoneOverride(IntPtr)

Calls native method webkit_web_context_get_time_zone_override. Version: 2.38

[Version("2.38")]
public static extern NonNullableUtf8StringUnownedHandle GetTimeZoneOverride(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

InitializeNotificationPermissions(IntPtr, ListHandle, ListHandle)

Calls native method webkit_web_context_initialize_notification_permissions. Version: 2.16

[Version("2.16")]
public static extern void InitializeNotificationPermissions(IntPtr context, ListHandle allowedOrigins, ListHandle disallowedOrigins)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

allowedOrigins ListHandle

Transfer ownership: None Nullable: False

disallowedOrigins ListHandle

Transfer ownership: None Nullable: False

IsAutomationAllowed(IntPtr)

Calls native method webkit_web_context_is_automation_allowed. Version: 2.18

[Version("2.18")]
public static extern bool IsAutomationAllowed(IntPtr context)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

New()

Calls native constructor webkit_web_context_new. Version: 2.8

[Version("2.8")]
public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

RegisterUriScheme(IntPtr, NonNullableUtf8StringHandle, URISchemeRequestCallback, IntPtr, DestroyNotify)

Calls native method webkit_web_context_register_uri_scheme.

public static extern void RegisterUriScheme(IntPtr context, NonNullableUtf8StringHandle scheme, URISchemeRequestCallback callback, IntPtr userData, DestroyNotify userDataDestroyFunc)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

scheme NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

callback URISchemeRequestCallback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

userDataDestroyFunc DestroyNotify

Transfer ownership: None Nullable: False

SendMessageToAllExtensions(IntPtr, IntPtr)

Calls native method webkit_web_context_send_message_to_all_extensions. Version: 2.28

[Version("2.28")]
public static extern void SendMessageToAllExtensions(IntPtr context, IntPtr message)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

message IntPtr

Transfer ownership: None Nullable: False

SetAutomationAllowed(IntPtr, bool)

Calls native method webkit_web_context_set_automation_allowed. Version: 2.18

[Version("2.18")]
public static extern void SetAutomationAllowed(IntPtr context, bool allowed)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

allowed bool

Transfer ownership: None Nullable: False

SetCacheModel(IntPtr, CacheModel)

Calls native method webkit_web_context_set_cache_model.

public static extern void SetCacheModel(IntPtr context, CacheModel cacheModel)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

cacheModel CacheModel

Transfer ownership: None Nullable: False

SetPreferredLanguages(IntPtr, Utf8StringArrayNullTerminatedHandle)

Calls native method webkit_web_context_set_preferred_languages.

public static extern void SetPreferredLanguages(IntPtr context, Utf8StringArrayNullTerminatedHandle languages)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

languages Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

SetSpellCheckingEnabled(IntPtr, bool)

Calls native method webkit_web_context_set_spell_checking_enabled.

public static extern void SetSpellCheckingEnabled(IntPtr context, bool enabled)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

enabled bool

Transfer ownership: None Nullable: False

SetSpellCheckingLanguages(IntPtr, Utf8StringArrayNullTerminatedHandle)

Calls native method webkit_web_context_set_spell_checking_languages.

public static extern void SetSpellCheckingLanguages(IntPtr context, Utf8StringArrayNullTerminatedHandle languages)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

languages Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: False

SetWebProcessExtensionsDirectory(IntPtr, NonNullableUtf8StringHandle)

Calls native method webkit_web_context_set_web_process_extensions_directory.

public static extern void SetWebProcessExtensionsDirectory(IntPtr context, NonNullableUtf8StringHandle directory)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

directory NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetWebProcessExtensionsInitializationUserData(IntPtr, VariantHandle)

Calls native method webkit_web_context_set_web_process_extensions_initialization_user_data. Version: 2.4

[Version("2.4")]
public static extern void SetWebProcessExtensionsInitializationUserData(IntPtr context, VariantHandle userData)

Parameters

context IntPtr

Transfer ownership: None Nullable: False

userData VariantHandle

Transfer ownership: None Nullable: False