"EngoTom" wrote:
From page 85 of the component reference doc.
Why is the variable reg created? I only see sec being used in the following 2 functions.
Funny. I was wondering the same thing last night. I thought creating the roRegistry object might initialize something somewhere, but I found that removing that line from my code didn't change any behavior, so I'm curious what it's for as well.
"EngoTom" wrote:
Also... When calling this function, what does "return invalid" return? I need to if block the return value...
"invalid" is the null or Nothing of BrightScript, so "return invalid" gives you a return value that you can test for validity (ex. If token = invalid Then prompt user for credentials).
"EngoTom" wrote:
Finally... When calling SetAuthData() will this example take into account a null registry section or one already populated with data. If null I want to create and save data, if not null I want to overwrite value.
This code will create the registry section if it doesn't already exist, or it will overwrite what's already there if it does exist.
TheEndless
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)