Table of Contents

Class WeakValue

Namespace
JavaScriptCore
Assembly
JavaScriptCore-6.0.dll
public sealed class WeakValue : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
WeakValue
Implements
Inherited Members

Constructors

WeakValue(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 WeakValue(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

WeakValue(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected WeakValue(CreationData data)

Parameters

data CreationData

WeakValue(WeakValueHandle)

protected WeakValue(WeakValueHandle handle)

Parameters

handle WeakValueHandle

Fields

ClearedSignal

Signal Descriptor for OnCleared.

public static readonly Signal<WeakValue> ClearedSignal

Field Value

Signal<WeakValue>

Methods

GetGType()

public static Type GetGType()

Returns

Type

GetValue()

public Value GetValue()

Returns

Value

New(Value)

public static WeakValue New(Value value)

Parameters

value Value

Returns

WeakValue

NewFromPointer(nint, bool)

Creates a new managed WeakValue instance for a given pointer.

public static WeakValue NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

WeakValue

NewWithProperties(ConstructArgument[])

Creates a new WeakValue and sets the properties specified by the construct arguments.

public static WeakValue NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

WeakValue

Events

OnCleared

public event SignalHandler<WeakValue> OnCleared

Event Type

SignalHandler<WeakValue>