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: 
idunno
Visitor

How to Exit Channel

There are certain channels that are able to exit when you press the up button. How can I make my program exit using different buttons?
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: How to Exit Channel

The easiest way is to just return from your entry point function (main or RunUserInterface).

--Mark
0 Kudos
RokuRobB
Streaming Star

Re: How to Exit Channel

You can use the msg.isRemoteKeyPressed() function to determine if a remote control key has been pressed. msg.GetIndex() will then return the code for the particular key that was pressed. You could then exit your channel in the event of a specific remote key press.
0 Kudos