JavaScriptCore.WeakValue¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
w/co |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
This signal is emitted when the JavaScript value is destroyed. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class JavaScriptCore.WeakValue(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
JavaScriptCore.WeakValuerepresents a weak reference to a value in aJavaScriptCore.Context. It can be used to keep a reference to a JavaScript value without protecting it from being garbage collected and without referencing theJavaScriptCore.Contexteither.- classmethod new(value)¶
- Parameters:
value (
JavaScriptCore.Value) – aJavaScriptCore.Value- Returns:
a new
JavaScriptCore.WeakValue- Return type:
Create a new
JavaScriptCore.WeakValuefor the JavaScript value referenced by value.
- get_value()¶
- Returns:
a new
JavaScriptCore.ValueorNoneif self was cleared.- Return type:
Get a
JavaScriptCore.Valuereferencing the JavaScript value of self.
Signal Details¶
- JavaScriptCore.WeakValue.signals.cleared(weak_value)¶
- Signal Name:
cleared- Flags:
- Parameters:
weak_value (
JavaScriptCore.WeakValue) – The object which received the signal
This signal is emitted when the JavaScript value is destroyed.
Property Details¶
- JavaScriptCore.WeakValue.props.value¶
- Name:
value- Type:
- Default Value:
- Flags:
The
JavaScriptCore.Valuereferencing the JavaScript value.