Contents

currentArguments()

Returns the arguments to the current native callback from JavaScript code.

Declaration

class func currentArguments() -> [Any]!

Return Value

The current callback arguments, or nil if not within native code called from JavaScript.

Discussion

Call this method within an Objective-C or Swift block or method invoked from within JavaScript to obtain an array of JSValue objects representing the arguments to the JavaScript function responsible for that callback.

If not currently in code invoked as a callback from JavaScript, this method returns nil.

See Also

Inspecting callback state in a running context