Developers

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

 

Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!