mind-ar-js icon indicating copy to clipboard operation
mind-ar-js copied to clipboard

How can I control when the uiLoading and uiScanning first show up?

Open marcusx2 opened this issue 3 years ago • 5 comments

@hiukim I read this section, however I was wondering if there was a way that could control when the uiLoading and uiScanning first show up? I don't want to override them, but I need to control when they first show up. This is the flow I need

  1. Some splash screen shows up that I control
  2. ui loading shows up. When loading finishes, it does not show uiScanning yet. Instead it goes to step 3.
  3. Show some other random stuff on the screen that I control.
  4. Show uiScanning and effectively starts scanning.

marcusx2 avatar Aug 04 '22 01:08 marcusx2

In that case, you can't use the default. You will need to implement this custom logic using the events callback

hiukim avatar Aug 04 '22 01:08 hiukim

That was quick :D. Yes, I was reading about the events callback. But I can't find anywhere how can I call the uiLoading and uiScanning. Can you give an example? Thanks.

marcusx2 avatar Aug 04 '22 01:08 marcusx2

You can't call uiLoading and uiScanning. but you can copy the html and css of those and control them if needed.

Or just implement your own. :)

hiukim avatar Aug 04 '22 02:08 hiukim

Ah I see, got it. Thanks for the clarification. A little bit off topic, are there any new features coming to the library, or did it come to a halt?

marcusx2 avatar Aug 04 '22 02:08 marcusx2

I personally don't have big plan at the moment. But if anyone wants to do something, I'm definitely happy to assist.

hiukim avatar Aug 04 '22 04:08 hiukim