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: 
Highlighted
rsromeo
Level 7

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
bhindman
Level 7

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
Level 7

Re: HOW TO SET DEFAULT CATEGORY TO BE SELECTED

Thanks bhindman! Smiley Very Happy
0 Kudos