Call a Javascript function from an Objective-C class

Call a Javascript function from an Objective-C class
0

Hey guys!

I have followed the instructions here:
https://docs.cocos2d-x.org/creator/manual/en/advanced-topics/oc-reflection.html
https://docs.cocos2d-x.org/creator/manual/en/advanced-topics/java-reflection.html

And I’ve managed to do the following:
:white_check_mark: Call a JAVA method from JS.
:white_check_mark: Call a JS method from JAVA.
:white_check_mark: Call an OBJ-C method from JS.

Now I’m trying to figure out how I can call a JS method from OBJ-C. Is it possible to achieve?