◆ JSFunction() [1/3]
Create an empty Function.
NOTE: It is OKAY to create this without calling SetJSContext() first.
◆ JSFunction() [2/3]
Copy constructor (shallow copy, will point to same instance)
◆ ~JSFunction()
◆ JSFunction() [3/3]
◆ context()
Get the bound context for this JSFunction (it is cached at creation).
◆ IsValid()
Whether or not this is a valid, callable Function object.
◆ operator JSObjectRef()
Get the underlying JSObjectRef (JavaScriptCore C API)
◆ operator()() [1/2]
Call function (using Global Object for 'this') and return the result.
◆ operator()() [2/2]
Call function (with explicit object for 'this') and return the result.
◆ operator=()
Assignment (shallow assignment, will point to same instance)
◆ set_context()
Set the JSContext for this JSFunction.
- Note
- JSFunctions created from within a JSCallback have a temporary JSContext that is destroyed when the callback returns. You will need to "move" any JSFunctions created within these callbacks to the View's main context (call set_context() with the main context) before using them outside the callback.
◆ JSValue
◆ ctx_
◆ instance_
The documentation for this class was generated from the following file: