Type Method

managedValueWithValue:andOwner:

Creates a managed value and associates it with an owner.

Declaration

+ (JSManagedValue *)managedValueWithValue:(JSValue *)value andOwner:(id)owner;

Parameters

value

A JavaScript value.

owner

The Objective-C or Swift object responsible for

Return Value

A new managed value.

Discussion

Calling this method is equivalent to creating a managed value and then reporting it to the JavaScriptCore virtual machine using the addManagedReference:withOwner: method.

See Also

Creating a Managed Value

- initWithValue:

Initializes a managed value with the specified JavaScript value.

+ managedValueWithValue:

Creates a managed value with the specified JavaScript value.