Table of Contents

Class UserContentManager

Namespace
WebKit
Assembly
WebKit-6.0.dll
public sealed class UserContentManager : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
UserContentManager
Implements
Inherited Members

Constructors

UserContentManager(bool, params ConstructArgument[])

protected UserContentManager(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

UserContentManager(IntPtr, bool)

protected UserContentManager(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ScriptMessageReceivedSignal

Signal Descriptor for OnScriptMessageReceived.

public static readonly Signal<UserContentManager, UserContentManager.ScriptMessageReceivedSignalArgs> ScriptMessageReceivedSignal

Field Value

Signal<UserContentManager, UserContentManager.ScriptMessageReceivedSignalArgs>

ScriptMessageWithReplyReceivedSignal

Signal Descriptor for OnScriptMessageWithReplyReceived.

public static readonly ReturningSignal<UserContentManager, UserContentManager.ScriptMessageWithReplyReceivedSignalArgs, bool> ScriptMessageWithReplyReceivedSignal

Field Value

ReturningSignal<UserContentManager, UserContentManager.ScriptMessageWithReplyReceivedSignalArgs, bool>

Methods

AddFilter(UserContentFilter)

[Version("2.24")]
public void AddFilter(UserContentFilter filter)

Parameters

filter UserContentFilter

AddScript(UserScript)

[Version("2.6")]
public void AddScript(UserScript script)

Parameters

script UserScript

AddStyleSheet(UserStyleSheet)

[Version("2.6")]
public void AddStyleSheet(UserStyleSheet stylesheet)

Parameters

stylesheet UserStyleSheet

GetGType()

public static Type GetGType()

Returns

Type

New()

[Version("2.6")]
public static UserContentManager New()

Returns

UserContentManager

RegisterScriptMessageHandler(string, string?)

[Version("2.40")]
public bool RegisterScriptMessageHandler(string name, string? worldName)

Parameters

name string
worldName string

Returns

bool

RegisterScriptMessageHandlerWithReply(string, string)

[Version("2.40")]
public bool RegisterScriptMessageHandlerWithReply(string name, string worldName)

Parameters

name string
worldName string

Returns

bool

RemoveAllFilters()

[Version("2.24")]
public void RemoveAllFilters()

RemoveAllScripts()

[Version("2.6")]
public void RemoveAllScripts()

RemoveAllStyleSheets()

[Version("2.6")]
public void RemoveAllStyleSheets()

RemoveFilter(UserContentFilter)

public void RemoveFilter(UserContentFilter filter)

Parameters

filter UserContentFilter

RemoveFilterById(string)

[Version("2.26")]
public void RemoveFilterById(string filterId)

Parameters

filterId string

RemoveScript(UserScript)

[Version("2.32")]
public void RemoveScript(UserScript script)

Parameters

script UserScript

RemoveStyleSheet(UserStyleSheet)

[Version("2.32")]
public void RemoveStyleSheet(UserStyleSheet stylesheet)

Parameters

stylesheet UserStyleSheet

UnregisterScriptMessageHandler(string, string?)

[Version("2.40")]
public void UnregisterScriptMessageHandler(string name, string? worldName)

Parameters

name string
worldName string

Events

OnScriptMessageReceived

public event SignalHandler<UserContentManager, UserContentManager.ScriptMessageReceivedSignalArgs> OnScriptMessageReceived

Event Type

SignalHandler<UserContentManager, UserContentManager.ScriptMessageReceivedSignalArgs>

OnScriptMessageWithReplyReceived

public event ReturningSignalHandler<UserContentManager, UserContentManager.ScriptMessageWithReplyReceivedSignalArgs, bool> OnScriptMessageWithReplyReceived

Event Type

ReturningSignalHandler<UserContentManager, UserContentManager.ScriptMessageWithReplyReceivedSignalArgs, bool>