Table of Contents

Class Class

Namespace
JavaScriptCore.Internal
Assembly
JavaScriptCore-6.0.dll
public class Class
Inheritance
Class
Inherited Members

Methods

AddConstructorVariadic(IntPtr, NullableUtf8StringHandle, Callback, IntPtr, DestroyNotify, Type)

Calls native method jsc_class_add_constructor_variadic.

public static extern IntPtr AddConstructorVariadic(IntPtr jscClass, NullableUtf8StringHandle name, Callback callback, IntPtr userData, DestroyNotify destroyNotify, Type returnType)

Parameters

jscClass IntPtr

Transfer ownership: None Nullable: False

name NullableUtf8StringHandle

Transfer ownership: None Nullable: True

callback Callback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

destroyNotify DestroyNotify

Transfer ownership: None Nullable: True

returnType Type

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

AddMethodVariadic(IntPtr, NonNullableUtf8StringHandle, Callback, IntPtr, DestroyNotify, Type)

Calls native method jsc_class_add_method_variadic.

public static extern void AddMethodVariadic(IntPtr jscClass, NonNullableUtf8StringHandle name, Callback callback, IntPtr userData, DestroyNotify destroyNotify, Type returnType)

Parameters

jscClass IntPtr

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

callback Callback

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

destroyNotify DestroyNotify

Transfer ownership: None Nullable: True

returnType Type

Transfer ownership: None Nullable: False

AddProperty(IntPtr, NonNullableUtf8StringHandle, Type, Callback, Callback, IntPtr, DestroyNotify)

Calls native method jsc_class_add_property.

public static extern void AddProperty(IntPtr jscClass, NonNullableUtf8StringHandle name, Type propertyType, Callback getter, Callback setter, IntPtr userData, DestroyNotify destroyNotify)

Parameters

jscClass IntPtr

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

propertyType Type

Transfer ownership: None Nullable: False

getter Callback

Transfer ownership: None Nullable: True

setter Callback

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

destroyNotify DestroyNotify

Transfer ownership: None Nullable: True

GetGType()

Calls native function jsc_class_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetName(IntPtr)

Calls native method jsc_class_get_name.

public static extern NonNullableUtf8StringUnownedHandle GetName(IntPtr jscClass)

Parameters

jscClass IntPtr

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetParent(IntPtr)

Calls native method jsc_class_get_parent.

public static extern IntPtr GetParent(IntPtr jscClass)

Parameters

jscClass IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False