I'm using an architectView object to load a html file in my android project:
Thank you in advance.
almost 6 years ago
Sometimes events like a click in your AR-experience should cause a reaction in native Android, for instance: Launch another screen when clicking a place mark or image target.
You need to register a urlListener using architectView.registerUrlListener() in the Activity.
Any document.location changes toarchitectsdk:// will fire an event in your listener (e.g. document.location = architectsdk://YOUR-INFO). Listener is informed about the invoked url and can then react on to.
Note: Missing urlListener registration will cause an HTTP-error when calling document.location = architectsdk://YOUR-INFO