Start a new topic

Buggy Titanium Module Reference

The API reference http://www.wikitude.com/external/doc/documentation/latest/titanium/referencetitanium.html starts with


"NOTE: All the following code snippets assume that there is a variable called wikitude that was created using the following line of code."

var wikitude = require('com.wikitude.ti');


But the most following code snippets are wrong, i.e.

wikitude.loadArchitectWorldFromURL(...);
wikitude.callJavaScript(...);
wikitude.captureScreen(...);

 

You have to call these methods on the created Wikitude view

var arView = wikitude.createWikitudeView(...);

and then call

arView.loadArchitectWorldFromURL(...);
arView.callJavaScript(...);
arView.captureScreen(...);

!

1 Comment

Hello Hendrik,



that is indeed a significant oversight. Thanks for bringing this up. I created an issue in our internal tracking system. 


I think we will schedule this to be fixed very soon.



Thanks,

- Daniel


Login or Signup to post a comment