Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

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

Re: How to Exit Channel

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

0 Kudos
Roku Employee
Roku Employee

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