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: 
rsromeo
Channel Surfer

HOW TO SET DEFAULT CATEGORY TO BE SELECTED

I am new to Roku development and have successfully created my own private channel by performing surgery on the videoplayer example that comes with the SDK. My categories show up fine except I don't know how to control which category is the first one selected or the default when a viewer opens my channel. It seems to always select one of the categories in the middle but I want the first category to always be selected as the default so it starts them at the beginning of the list. Does anyone know how I can accomplish this? Any input would be greatly appreciated. Thanks.
0 Kudos
2 REPLIES 2
bhindman
Visitor

Re: HOW TO SET DEFAULT CATEGORY TO BE SELECTED

screen.SetFocusedListItem(0)

0 being the first item in the array
www.sunimi.com
0 Kudos
rsromeo
Channel Surfer

Re: HOW TO SET DEFAULT CATEGORY TO BE SELECTED

Thanks bhindman! 😄
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.