I am loading POIs using Wikitude SDK. On TAP of google glass i am requesting new POIs locations and when received i delete old ones and draw new ones. However while drawing new POIs on CameraView, it takes a little time. What i want to do is to show an image or a text or something while it draws the new ones. That way the user will understand that he TAPPED glass and needs to wait a little. Is there any way to achieve that?
A
Andreas Fötschl
said
almost 8 years ago
Hi there!
Note that the "ArchitectView" is managed like an advanced ViewGroup in your layout.xml Feel free to pu other native UI components on top of it. That way you can e.g. center a "Requesting new POIs" box on top of the AR-View which is shown for around 2 seconds when user presses the refresh button.
Alternatively but a bit more advanced you could also style a loading-div in your AR-View's index.html and tell your JavaScript environment via arView.callJavaScript (compare retrieving POI data from application model sample) to call e.g. arView.callJavaScript("World.onRefreshTriggered()") and handle all the div-hiding + refresh POI stuff in JS environment.
Hope that helps. Kind regards, Andreas
PS.: Unfortunately there is no "onDestroyed" or "onDrawn" callback available for AR.Objects so please just define your loading animation for a period that looks suitable.
H
Hrs Krs
said
almost 8 years ago
When you say on top, you mean inside ArchitectVIew or outside it. Tried:
Hrs Krs