Table of Contents

Class UserScript

Namespace
WebKit.Internal
Assembly
WebKit-6.0.dll
public class UserScript
Inheritance
UserScript
Inherited Members

Methods

GetGType()

Calls native function webkit_user_script_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

New(NonNullableUtf8StringHandle, UserContentInjectedFrames, UserScriptInjectionTime, Utf8StringArrayNullTerminatedHandle, Utf8StringArrayNullTerminatedHandle)

Calls native constructor webkit_user_script_new. Version: 2.6

[Version("2.6")]
public static extern UserScriptOwnedHandle New(NonNullableUtf8StringHandle source, UserContentInjectedFrames injectedFrames, UserScriptInjectionTime injectionTime, Utf8StringArrayNullTerminatedHandle allowList, Utf8StringArrayNullTerminatedHandle blockList)

Parameters

source NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

injectedFrames UserContentInjectedFrames

Transfer ownership: None Nullable: False

injectionTime UserScriptInjectionTime

Transfer ownership: None Nullable: False

allowList Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

blockList Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

Returns

UserScriptOwnedHandle

Transfer ownership: Full Nullable: False

NewForWorld(NonNullableUtf8StringHandle, UserContentInjectedFrames, UserScriptInjectionTime, NonNullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle, Utf8StringArrayNullTerminatedHandle)

Calls native constructor webkit_user_script_new_for_world. Version: 2.22

[Version("2.22")]
public static extern UserScriptOwnedHandle NewForWorld(NonNullableUtf8StringHandle source, UserContentInjectedFrames injectedFrames, UserScriptInjectionTime injectionTime, NonNullableUtf8StringHandle worldName, Utf8StringArrayNullTerminatedHandle allowList, Utf8StringArrayNullTerminatedHandle blockList)

Parameters

source NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

injectedFrames UserContentInjectedFrames

Transfer ownership: None Nullable: False

injectionTime UserScriptInjectionTime

Transfer ownership: None Nullable: False

worldName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

allowList Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

blockList Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

Returns

UserScriptOwnedHandle

Transfer ownership: Full Nullable: False

Ref(UserScriptHandle)

Calls native method webkit_user_script_ref. Version: 2.6

[Version("2.6")]
public static extern UserScriptOwnedHandle Ref(UserScriptHandle userScript)

Parameters

userScript UserScriptHandle

Transfer ownership: None Nullable: False

Returns

UserScriptOwnedHandle

Transfer ownership: Full Nullable: False

Unref(UserScriptHandle)

Calls native method webkit_user_script_unref. Version: 2.6

[Version("2.6")]
public static extern void Unref(UserScriptHandle userScript)

Parameters

userScript UserScriptHandle

Transfer ownership: None Nullable: False