Class WebContext
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
IntPtrTransfer ownership: None Nullable: False
path
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
readOnly
boolTransfer ownership: None Nullable: False
GetCacheModel(IntPtr)
Calls native method webkit_web_context_get_cache_model.
public static extern CacheModel GetCacheModel(IntPtr context)
Parameters
context
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
allowedOrigins
ListHandleTransfer ownership: None Nullable: False
disallowedOrigins
ListHandleTransfer 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
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
scheme
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
callback
URISchemeRequestCallbackTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
userDataDestroyFunc
DestroyNotifyTransfer 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
IntPtrTransfer ownership: None Nullable: False
message
IntPtrTransfer 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
IntPtrTransfer ownership: None Nullable: False
allowed
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
cacheModel
CacheModelTransfer 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
IntPtrTransfer ownership: None Nullable: False
languages
Utf8StringArrayNullTerminatedHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
enabled
boolTransfer 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
IntPtrTransfer ownership: None Nullable: False
languages
Utf8StringArrayNullTerminatedHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
directory
NonNullableUtf8StringHandleTransfer 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
IntPtrTransfer ownership: None Nullable: False
userData
VariantHandleTransfer ownership: None Nullable: False