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

Create my own Remote Key Sequence?

What if I want to embed my own remote key sequence? Perhaps to allow someone to enter a PIN to be able to override the app in some way?

I'm not sure what event I should be listening for, as well as where!
0 Kudos
1 REPLY 1\
Level 10

Re: Create my own Remote Key Sequence?


It depends on the screen you are using, but typically you will use the isRemoteKeyPressed() API inside your message event handler to recognize key presses.

From a UI consistency perspective we would actually prefer that you add a settings screen to your application that exposed these types of options rather than a hidden screen that user might accidently stumble across.

If you go the settings screen route you can pop up a PIN entry dialog (roPinEntryDialog) to guard a particular setting if you would like.

0 Kudos