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

Get current version?

Hi, I'd like to use the ifPosterScreen.SetFocusToFilterBanner(boolean) function which is available since framework version 3.0. However, I need my channel to run on version 2 as well. Is it possible to determine at run-time which version is being used, so that I can make sure I'm only calling the function when it actually exists?
0 Kudos
2 REPLIES 2
TheEndless
Channel Surfer

Re: Get current version?

There shouldn't be any devices in the wild running firmware version 2. The Roku 1s run version 3.1 and all current generation Rokus run version 5.0.

That being said, you can check the firmware version via the GetVersion() method of roDeviceInfo: http://sdkdocs.roku.com/display/sdkdoc/ ... onasString
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
Rek
Visitor

Re: Get current version?

"TheEndless" wrote:
There shouldn't be any devices in the wild running firmware version 2. The Roku 1s run version 3.1 and all current generation Rokus run version 5.0.

That being said, you can check the firmware version via the GetVersion() method of roDeviceInfo: http://sdkdocs.roku.com/display/sdkdoc/ ... onasString


Excellent. Thank you 😄
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.