Start a new topic

How to call a World function from Titanium JS

How to call a World function from Titanium JS


Hey,

 

I'm trying to pass some values to the World object but I'm not being able to,

I can call a Titanium function from the World object using the document.location = "architectsdk://myfunction";

 

So how can I call a World object function from Titanium js?

 

Thanks in advance. :)

Hi Jorge!
Please have a look at our Titanium Module documentation. The function you need is:

callJavaScript

Use this function to call javascript which will be evaluated in the context of the currently loaded ARchitect World.

@param {string} javascript: The JavaScript that should be evaluated in the ARchitect World context.


Usage:

wikitude.callJavaScript('alert('Hello!\');');

 

Best regards

Andreas
Login or Signup to post a comment