Table of Contents

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 bool
constructArguments ConstructArgument[]

WebContext(IntPtr, bool)

protected WebContext(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AutomationStartedSignal

Signal Descriptor for OnAutomationStarted.

public static readonly Signal<WebContext, WebContext.AutomationStartedSignalArgs> AutomationStartedSignal

Field Value

Signal<WebContext, WebContext.AutomationStartedSignalArgs>

InitializeNotificationPermissionsSignal

Signal Descriptor for OnInitializeNotificationPermissions.

public static readonly Signal<WebContext> InitializeNotificationPermissionsSignal

Field Value

Signal<WebContext>

InitializeWebProcessExtensionsSignal

Signal Descriptor for OnInitializeWebProcessExtensions.

public static readonly Signal<WebContext> InitializeWebProcessExtensionsSignal

Field Value

Signal<WebContext>

TimeZoneOverridePropertyDefinition

public static readonly Property<string?, WebContext> TimeZoneOverridePropertyDefinition

Field Value

Property<string, WebContext>

UserMessageReceivedSignal

Signal Descriptor for OnUserMessageReceived.

public static readonly ReturningSignal<WebContext, WebContext.UserMessageReceivedSignalArgs, bool> UserMessageReceivedSignal

Field Value

ReturningSignal<WebContext, WebContext.UserMessageReceivedSignalArgs, bool>

Properties

TimeZoneOverride

public string? TimeZoneOverride { get; }

Property Value

string

Methods

AddPathToSandbox(string, bool)

[Version("2.26")]
public void AddPathToSandbox(string path, bool readOnly)

Parameters

path string
readOnly bool

GetCacheModel()

public CacheModel GetCacheModel()

Returns

CacheModel

GetDefault()

public static WebContext GetDefault()

Returns

WebContext

GetGType()

public static Type GetGType()

Returns

Type

GetGeolocationManager()

[Version("2.26")]
public GeolocationManager GetGeolocationManager()

Returns

GeolocationManager

GetNetworkSessionForAutomation()

[Version("2.40")]
public NetworkSession? GetNetworkSessionForAutomation()

Returns

NetworkSession

GetSecurityManager()

public SecurityManager GetSecurityManager()

Returns

SecurityManager

GetSpellCheckingEnabled()

public bool GetSpellCheckingEnabled()

Returns

bool

GetSpellCheckingLanguages()

public string[] GetSpellCheckingLanguages()

Returns

string[]

GetTimeZoneOverride()

[Version("2.38")]
public string GetTimeZoneOverride()

Returns

string

InitializeNotificationPermissions(List, List)

[Version("2.16")]
public void InitializeNotificationPermissions(List allowedOrigins, List disallowedOrigins)

Parameters

allowedOrigins List
disallowedOrigins List

IsAutomationAllowed()

[Version("2.18")]
public bool IsAutomationAllowed()

Returns

bool

New()

[Version("2.8")]
public static WebContext New()

Returns

WebContext

RegisterUriScheme(string, URISchemeRequestCallback)

public void RegisterUriScheme(string scheme, URISchemeRequestCallback callback)

Parameters

scheme string
callback 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

SignalHandler<WebContext, WebContext.AutomationStartedSignalArgs>

OnInitializeNotificationPermissions

public event SignalHandler<WebContext> OnInitializeNotificationPermissions

Event Type

SignalHandler<WebContext>

OnInitializeWebProcessExtensions

public event SignalHandler<WebContext> OnInitializeWebProcessExtensions

Event Type

SignalHandler<WebContext>

OnUserMessageReceived

public event ReturningSignalHandler<WebContext, WebContext.UserMessageReceivedSignalArgs, bool> OnUserMessageReceived

Event Type

ReturningSignalHandler<WebContext, WebContext.UserMessageReceivedSignalArgs, bool>