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
boolconstructArguments
ConstructArgument[]
UserContentManager(IntPtr, bool)
protected UserContentManager(IntPtr ptr, bool ownedRef)
Parameters
Fields
ScriptMessageReceivedSignal
Signal Descriptor for OnScriptMessageReceived.
public static readonly Signal<UserContentManager, UserContentManager.ScriptMessageReceivedSignalArgs> ScriptMessageReceivedSignal
Field Value
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
New()
[Version("2.6")]
public static UserContentManager New()
Returns
RegisterScriptMessageHandler(string, string?)
[Version("2.40")]
public bool RegisterScriptMessageHandler(string name, string? worldName)
Parameters
Returns
RegisterScriptMessageHandlerWithReply(string, string)
[Version("2.40")]
public bool RegisterScriptMessageHandlerWithReply(string name, string worldName)
Parameters
Returns
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
Events
OnScriptMessageReceived
public event SignalHandler<UserContentManager, UserContentManager.ScriptMessageReceivedSignalArgs> OnScriptMessageReceived
Event Type
OnScriptMessageWithReplyReceived
public event ReturningSignalHandler<UserContentManager, UserContentManager.ScriptMessageWithReplyReceivedSignalArgs, bool> OnScriptMessageWithReplyReceived