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: 
cocotower
Roku Guru

Handling Input Events

Be careful when handling the input event.  If there's a dialog already open like a subscription dialog when the input event occurs and the action of the input event leads to another dialog like a Resume/Play/Rewind dialog, this new dialog will overtake the old dialog as you'd expect.  However, when the new dialog is closed, at some point the old dialog will become visible again unless it's closed properly.

A test that's currently passing is to just close all possible dialogs from within your input event handler. 

m.SubscriptionDialog.close = true

m.ResumeDialog.close = true

m.WarningDialog.close = true

 

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.