如何从PhoneGap的视图数据wikitude传递给建筑师视图 [英] How to pass data from Phonegap view to architect view from wikitude
问题描述
我正在使用的PhoneGap,wikitude和voicerecognizer(PhoneGap的插件)一个增强现实/语音识别应用程序。几乎所有的功能:应用程序启动本地语音API,在输入字段保存结果,然后开始去wikitude建筑师视图。我必须把值从输入字段槽建筑师视图(这不得不感染,显示的型号)。
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.
我试过了很多东西,但没有奏效。我真的接近解决方案槽的cookie,但是当我试图打开建筑师cookie的浏览它给了一个安全错误。
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.
短的问题:怎样通过PhoneGap的视图和Wikitude建筑师视图之间的数据/变量
推荐答案
的Wikitude SDK的Android已经下面的方法:
The Wikitude SDK for android has the following method:
无效callJavascript(字符串javaScriptCommand)
执行在当前加载的建筑师世界的背景下,通过JavaScript的字符串。这可以用来将数据传递给建筑师世界或通知其外部事件。
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.
也许没有为PhoneGap的插件类似的东西。
Maybe there is something similar for the phonegap plugin.
这篇关于如何从PhoneGap的视图数据wikitude传递给建筑师视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!