Class WebContext
- Namespace
- WebKit
- Assembly
- WebKit-6.0.dll
public sealed class WebContext : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
WebContext
- Implements
- Inherited Members
Constructors
WebContext(bool, params ConstructArgument[])
protected WebContext(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
WebContext(IntPtr, bool)
protected WebContext(IntPtr ptr, bool ownedRef)
Parameters
Fields
AutomationStartedSignal
Signal Descriptor for OnAutomationStarted.
public static readonly Signal<WebContext, WebContext.AutomationStartedSignalArgs> AutomationStartedSignal
Field Value
InitializeNotificationPermissionsSignal
Signal Descriptor for OnInitializeNotificationPermissions.
public static readonly Signal<WebContext> InitializeNotificationPermissionsSignal
Field Value
InitializeWebProcessExtensionsSignal
Signal Descriptor for OnInitializeWebProcessExtensions.
public static readonly Signal<WebContext> InitializeWebProcessExtensionsSignal
Field Value
TimeZoneOverridePropertyDefinition
public static readonly Property<string?, WebContext> TimeZoneOverridePropertyDefinition
Field Value
UserMessageReceivedSignal
Signal Descriptor for OnUserMessageReceived.
public static readonly ReturningSignal<WebContext, WebContext.UserMessageReceivedSignalArgs, bool> UserMessageReceivedSignal
Field Value
Properties
TimeZoneOverride
public string? TimeZoneOverride { get; }
Property Value
Methods
AddPathToSandbox(string, bool)
[Version("2.26")]
public void AddPathToSandbox(string path, bool readOnly)
Parameters
GetCacheModel()
public CacheModel GetCacheModel()
Returns
GetDefault()
public static WebContext GetDefault()
Returns
GetGType()
public static Type GetGType()
Returns
GetGeolocationManager()
[Version("2.26")]
public GeolocationManager GetGeolocationManager()
Returns
GetNetworkSessionForAutomation()
[Version("2.40")]
public NetworkSession? GetNetworkSessionForAutomation()
Returns
GetSecurityManager()
public SecurityManager GetSecurityManager()
Returns
GetSpellCheckingEnabled()
public bool GetSpellCheckingEnabled()
Returns
GetSpellCheckingLanguages()
public string[] GetSpellCheckingLanguages()
Returns
- string[]
GetTimeZoneOverride()
[Version("2.38")]
public string GetTimeZoneOverride()
Returns
InitializeNotificationPermissions(List, List)
[Version("2.16")]
public void InitializeNotificationPermissions(List allowedOrigins, List disallowedOrigins)
Parameters
IsAutomationAllowed()
[Version("2.18")]
public bool IsAutomationAllowed()
Returns
New()
[Version("2.8")]
public static WebContext New()
Returns
RegisterUriScheme(string, URISchemeRequestCallback)
public void RegisterUriScheme(string scheme, URISchemeRequestCallback callback)
Parameters
scheme
stringcallback
URISchemeRequestCallback
SendMessageToAllExtensions(UserMessage)
[Version("2.28")]
public void SendMessageToAllExtensions(UserMessage message)
Parameters
message
UserMessage
SetAutomationAllowed(bool)
[Version("2.18")]
public void SetAutomationAllowed(bool allowed)
Parameters
allowed
bool
SetCacheModel(CacheModel)
public void SetCacheModel(CacheModel cacheModel)
Parameters
cacheModel
CacheModel
SetPreferredLanguages(string[]?)
public void SetPreferredLanguages(string[]? languages)
Parameters
languages
string[]
SetSpellCheckingEnabled(bool)
public void SetSpellCheckingEnabled(bool enabled)
Parameters
enabled
bool
SetSpellCheckingLanguages(string[])
public void SetSpellCheckingLanguages(string[] languages)
Parameters
languages
string[]
SetWebProcessExtensionsDirectory(string)
public void SetWebProcessExtensionsDirectory(string directory)
Parameters
directory
string
SetWebProcessExtensionsInitializationUserData(Variant)
[Version("2.4")]
public void SetWebProcessExtensionsInitializationUserData(Variant userData)
Parameters
userData
Variant
Events
OnAutomationStarted
public event SignalHandler<WebContext, WebContext.AutomationStartedSignalArgs> OnAutomationStarted
Event Type
OnInitializeNotificationPermissions
public event SignalHandler<WebContext> OnInitializeNotificationPermissions
Event Type
OnInitializeWebProcessExtensions
public event SignalHandler<WebContext> OnInitializeWebProcessExtensions
Event Type
OnUserMessageReceived
public event ReturningSignalHandler<WebContext, WebContext.UserMessageReceivedSignalArgs, bool> OnUserMessageReceived