Roku Developer Program

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

Button Behavior

When checking out the registration demo there is a "Back" button. That works fine if you are in a sub menu, going up one level is ok. But if the doRegistration is the first thing you do then the "Back" button takes you out of the channel. Where's the documentation that gives the default button behavior and reserved words? Might there just be a few like "Go", "Continue", "Exit", "Home", "Back"....
0 Kudos
2 REPLIES 2\
RokuChris
Roku Employee
Roku Employee

Re: Button Behavior

There are no reserved button titles or default behaviors. You can label a button however you want and handle its isButtonPressed() event however you want.

It sounds like the channel is exiting because you're closing all of its screens. That's normal behavior. One solution is to open a blank roPosterScreen at launch as a facade which stays open beneath all your other screens to prevent the channel from exiting before you want it to.
0 Kudos
lhgrubbs
Level 7

Re: Button Behavior

Very insightful Chris! Thank you.
0 Kudos