Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
greubel
Level 7

BusySpinner

I created a BusySpinner in BS and repeatedly called a TASK to build up a scroll-able screen.There could be a large number of entries, so I call the TASK for multiple groups.I started with a group of 200 but it looks like the spinner hangs until the TASK completes. Lowered it to a group of 20, just so the spinner would.
The spinner STOPS while running the TASK. I guess because it runs under my BS activity ?

Would creating the spinner inside of a TASK make it functional ?
0 Kudos
2 Replies
speechles
Level 7

Re: BusySpinner

You mean would the spinner keep spinning with a task. Yes.

https://github.com/rokudev/hero-grid-ch ... gIndicator

That example might help.

The thread you call the BS Activity thread is actually the render thread. Inside a task is the worker thread. Inside the worker thread you can animate the indicator that shows in the render thread.
0 Kudos
norcaljohnny
Level 7

Re: BusySpinner

Sounds like you are just calling it to start and stop in the wrong spots.. I'm not sure I even fully understand the question but I have had no problems and I have tested it with over 10,000 files rendering in a task.
0 Kudos