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: 

Info button in ListScreen

hi'
how i did this?
like pandora options
thanks
0 Kudos
3 REPLIES 3
RokuChris
Roku Employee
Roku Employee

Re: Info button in ListScreen

The (*) button on a roListScreen raises an isRemoteKeyPressed() event. So you would do something like

    if type(msg) = "roListScreenEvent"
if msg.isRemoteKeyPressed()
index = msg.GetIndex()
if index = 10 'INFO
' do stuff
end if
end if
end if
0 Kudos

Re: Info button in ListScreen

it's works.
how i know the index of the item that focus when the info button pressed?

thanks
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: Info button in ListScreen

You can keep track of the focused item using the isListItemFocused() event

if msg.isListItemFocused()
focusedItem = msg.GetIndex()
end if
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.