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

Disabled Buttons

Hi,

Is there a way to enable/disable buttons pressed on the remote? The reason why I ask is I want to prevent the user from pressing any buttons during certain processing with XML files. If I can disable buttons, I can let the process finish, then enable them once finished.

Thanks,
Kevin
0 Kudos
4 REPLIES 4
krh5150
Visitor

Re: Disabled Buttons

Another way of explaining this issue is to prevent the user from doing any other action before the XML processing on that web server is done.
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: Disabled Buttons

In these situations, most channels will put up a roMessageDialog without any buttons. http://sdkdocs.roku.com/display/sdkdoc/roMessageDialog
0 Kudos
squirreltown
Roku Guru

Re: Disabled Buttons

Chris, is any code needed to dismiss the dialog with no buttons? For instance using it in the place of a screenFacade?
thanks
Kinetics Screensavers
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: Disabled Buttons

"squirreltown" wrote:
Chris, is any code needed to dismiss the dialog with no buttons? For instance using it in the place of a screenFacade?
thanks


Yes, you'll have to dismiss the dialog programatically. I think that was the OP's point, he wanted a blocking UI element that the user couldn't override. A roMessageDialog is a good choice for that situation because it gives you a way to tell the user why they're being forced to wait.

As a matter of best practice, you should do everything you can to minimize blocking situations like that though. They don't make for a very good user experience and the user always has the option of hitting the HOME button to exit the channel.
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.