Class ScriptWorld
- Namespace
- WebKitWebProcessExtension
- Assembly
- WebKitWebProcessExtension-6.0.dll
public sealed class ScriptWorld : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
ScriptWorld
- Implements
- Inherited Members
Constructors
ScriptWorld(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ScriptWorld(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ScriptWorld(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ScriptWorld(CreationData data)
Parameters
dataCreationData
ScriptWorld(ScriptWorldHandle)
protected ScriptWorld(ScriptWorldHandle handle)
Parameters
handleScriptWorldHandle
Fields
WindowObjectClearedSignal
Signal Descriptor for OnWindowObjectCleared.
public static readonly Signal<ScriptWorld, ScriptWorld.WindowObjectClearedSignalArgs> WindowObjectClearedSignal
Field Value
Methods
GetDefault()
[Version("2.2")]
public static ScriptWorld GetDefault()
Returns
GetGType()
public static Type GetGType()
Returns
GetName()
[Version("2.22")]
public string GetName()
Returns
New()
[Version("2.2")]
public static ScriptWorld New()
Returns
NewFromPointer(nint, bool)
Creates a new managed ScriptWorld instance for a given pointer.
public static ScriptWorld NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithName(string)
[Version("2.22")]
public static ScriptWorld NewWithName(string name)
Parameters
namestring
Returns
NewWithProperties(ConstructArgument[])
Creates a new ScriptWorld and sets the properties specified by the construct arguments.
public static ScriptWorld NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnWindowObjectCleared
public event SignalHandler<ScriptWorld, ScriptWorld.WindowObjectClearedSignalArgs> OnWindowObjectCleared