This component is deprecated.

Beginning July 1st, 2017, any new channels using this component will be rejected during certification.

Beginning January 1st, 2018, any updates to existing channels using this component will be rejected during certification.

The Code Registration Screen is designed to present the user a registration code, and the information required to instruct the user on how to register with a service provider. This screen is designed for a rendezvous registration process, where the user is presented a code and the URL for a registration site. The user goes to the site and enters their code, which causes the device and the account to be linked. In the background, the script is polling for completion and the screen is closed to display an activation successful screen when done.

Supported Interfaces

Events

Description


Diagram: roCodeRegistrationScreen

 

Example
Function ShowMessageDialog() As Void
     port = CreateObject("roMessagePort")
     screen = CreateObject("roCodeRegistrationScreen")
     screen.SetMessagePort(port) 
     screen.SetTitle("[Registration screen title]")
     screen.AddParagraph("[Registration screen paragraphs are justified to right and left edges]")
     screen.AddFocalText(" ", "spacing-dense")
     screen.AddFocalText("From your computer,", "spacing-dense")
     screen.AddFocalText("go to www.myco.com/roku", "spacing-dense")
     screen.AddFocalText("and enter this code:", "spacing-dense")
     screen.AddFocalText(" ", "spacing-dense")
     screen.SetRegistrationCode("retrieving code...")
     screen.AddParagraph("[Registration screen paragraphs are justified to right and left edges and may continue on multiple lines]")
     screen.AddButton(0, "get a new code")
     screen.AddButton(1, "back")
     screen.Show() 
     sleep (10000) 'simulate fetching registration code from webapi
     screen.SetRegistrationCode("ABC7TG")
     screen.Show() 
     while true
         dlgMsg = wait(0, dialog.GetMessagePort())
         exit while 
     end while
 End Function

 

Image: roCodeRegistrationScreen example results


 



Attachments:

worddav3cfe0d540660e9b853460dac7485ee72.png (application/octet-stream)
worddavdd611cc69b4f727317c2cfd02108fdec.png (application/octet-stream)
worddavcd41fb5192fc233b7b949a6173d55a88.png (application/octet-stream)
cdregistscrn1.jpg (image/jpeg)
cdregistscrn2.jpg (image/jpeg)
cdregistscrn1.jpg (image/jpeg)
cdregistscrn2.jpg (image/jpeg)