Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
alexboyer
Visitor

Detecting button focus

Hello,

Is there any way on the SpringBoard screen to detect button focus? Like if you have
Resume
Play from beginning
Go back

and the customer pressed the down arrow on the remote so now they're highlighting Play from beginning, but haven't clicked it yet, I'd like to be able to get the index of this.

My first thought was just to prepopulate an array index of available buttons and check it in isRemoteKeyPressed and just say if the current index equals the array count, keep it at the max, otherwise iterate one. I was hoping for a built-in method though.
0 Kudos
1 REPLY 1
destruk
Streaming Star

Re: Detecting button focus

If you have more than two buttons on the springboard, if the user holds down the down or up on the remote it will auto-advance until they release the button.
It's reliable to check when they select an option, otherwise you get into timing issues and trying to code elaborate handling for what you're trying to do here which increases complexity and reduces return on your programming time investment.
A custom created springboard using roImageCanvas or roScreen would allow you the functionality you want - but again, takes longer to set up.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.