Start a new topic

In ARarchitect, make a button to open another page in app

In ARarchitect, make a button to open another page in app


Hi.

If you need to call a native function from your AR world, you can use an URL in the form "architectsdk://". In the sample application there is a basic handler for this callback (in ARchitectWindow.js, function "ARchitectWindow.prototype.onURLWasInvoked"), you can try it with the following Javascript code:

document.location = "architectsdk://xxx.yyy.zzz"

 

The current implementation of the callback has not been tested with the latest version of the SDK, and it probably won't work, so I suggest you to change it to:

ARchitectWindow.prototype.onURLWasInvoked = function(url) {
alert("url was invoked: " + url);
};

 

I will include an example for this function in the sample application for the next version.

 

 

Hello all, as you can see, I try to use the Wikitude SDK.

I have another question :

Can I add a button on the top (like the Back and Capture button in the samples given) to open a window of my app ?

In the sample, the only button is the BACK button.

 

Example :

When clicking on the button, I want to open a page to my app.
Login or Signup to post a comment