How to pass data from Phonegap view to architect view from wikitude

自作多情 提交于 2019-12-11 01:54:58

问题


I am making a augmented reality / voice recognition app using Phonegap, wikitude and voicerecognizer (phonegap plugin). Almost everything works: The app launches the native speech api, saves the result in an input field, and then starts de wikitude ARchitect view. I have to put the value from the input field trough to the ARchitect view (this had to infect the models that show).

The Problem is: I've no idea how to do this.

I tried a lot of things but nothing worked. I was realy close to the solution trough a cookie, but when I tried to open the cookie in the ARchitect view it gave a security error.

The question in short: How to pass data/variable between the Phonegap view and the Wikitude ARchitect view?


回答1:


The Wikitude SDK for android has the following method:

void callJavascript(String javaScriptCommand) Executes the passed JavaScript string in the context of the currently loaded ARchitect World. This can be used to pass data to the ARchitect World or to notify it of external events.

Maybe there is something similar for the phonegap plugin.



来源:https://stackoverflow.com/questions/16063889/how-to-pass-data-from-phonegap-view-to-architect-view-from-wikitude

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!