### Brightscript Scene Show Function Source: https://github.com/rokudev/samples/blob/master/getting started/SceneGraphDeveloperExtensions-master/samples/1_Setup+and+HelloWorld/Readme.md Overrides the show() function in MainScene.brs to print 'Hello World!' to the console. ```brightscript sub show(args as Object) print "Hello World!" end sub ``` -------------------------------- ### Development Environment Setup Source: https://github.com/rokudev/samples/blob/master/getting started/NewDeveloperOnboardingSample-master/SampleRSGChannel/docs/Readme.txt Information on setting up the development environment for Roku channels, covering necessary tools and procedures for building and testing applications. ```APIDOC Development Environment Overview: https://sdkdocs.roku.com/display/sdkdoc/Development+Environment+Overview ``` -------------------------------- ### XML Scene Definition Source: https://github.com/rokudev/samples/blob/master/getting started/SceneGraphDeveloperExtensions-master/samples/1_Setup+and+HelloWorld/Readme.md Defines the MainScene component in XML, extending BaseScene and importing the associated Brightscript file. ```xml ``` -------------------------------- ### Scenegraph XML Structure Source: https://github.com/rokudev/samples/blob/master/getting started/NewDeveloperOnboardingSample-master/SampleRSGChannel/docs/Readme.txt Guide to understanding and utilizing Scenegraph XML for defining the user interface and layout of Roku applications, including node hierarchies and properties. ```APIDOC SceneGraph XML Overview: https://sdkdocs.roku.com/display/sdkdoc/SceneGraph+XML+Overview ``` -------------------------------- ### EntitlementHandler Example Source: https://github.com/rokudev/samples/blob/master/getting started/SceneGraphDeveloperExtensions-master/documentation/1-components.md Provides an example of implementing the EntitlementHandler, specifically the ConfigureEntitlements method, to define product codes and trial information for Roku Billing. ```brightscript ' [In in channel] sub ConfigureEntitlements(config as Object) config.products = [ '{code: "PROD1", hasTrial: false} {code: "PROD2", hasTrial: false} ] end sub ``` -------------------------------- ### RokuAuthScreen Initialization Source: https://github.com/rokudev/samples/blob/master/roku pay/ChannelStore_SignupFlow/docs/components/RokuSignUp/RokuAuthScreen.brs.html Handles the initial setup and default property assignments for the RokuAuthScreen component. ```brightscript init() Component initialization, setting default properties ``` -------------------------------- ### Initialize GridView and Set Attributes Source: https://github.com/rokudev/samples/blob/master/getting started/SceneGraphDeveloperExtensions-master/samples/3_Grid/README.md Creates a GridView object and sets its style and poster shape. This is the initial setup for displaying content in a grid format. ```brightscript m.grid = CreateObject("roSGNode", "GridView") m.grid.setFields({ style: "standard" posterShape: "16x9" }) ``` -------------------------------- ### Roku SceneGraph Component Examples Source: https://github.com/rokudev/samples/blob/master/getting started/SceneGraphTutorial/README.md This section outlines the subdirectories containing XML component files for various Roku SceneGraph examples. Each subdirectory focuses on a specific aspect of SceneGraph development, such as renderable nodes, z-order, animations, events, typography, control nodes, lists, grids, widgets, layout groups, sliding panels, and media playback. ```xml ``` ```xml ``` ```xml ``` ```xml ``` ```xml ``` ```xml ``` ```xml ``` ```xml ``` ```xml ``` ```xml ``` ```xml ``` -------------------------------- ### Using VideoView Example Source: https://github.com/rokudev/samples/blob/master/getting started/SceneGraphDeveloperExtensions-master/documentation/1-components.md Demonstrates how to create and configure a VideoView component in Roku development. It shows setting content, jump index, and control, and then displaying the VideoView. ```ro video = CreateObject("roSGNode", "VideoView") video.content = content video.jumpToItem = index video.control = "play" m.top.ComponentController.callFunc("show", { view: video }) 'User can observe video.endcardItemSelected to handle endcard selection 'video.currentIndex or video.currentItem fields can be used to track what was the last video after a video is closed. ``` -------------------------------- ### SimpleContentHandler Example Source: https://github.com/rokudev/samples/blob/master/getting started/SceneGraphDeveloperExtensions-master/documentation/1-components.md An example demonstrating the usage of SimpleContentHandler, showing how to define the component in XML and implement the GetContent function in BrightScript to set content fields. ```xml ``` -------------------------------- ### BusySpinner Node Example Source: https://github.com/rokudev/samples/blob/master/ux components/widgets/BusySpinnerExample/README.md This example demonstrates how to use the BusySpinner node in Roku SceneGraph. It includes the XML structure for the component and the BrightScript code to initialize and manage the spinner's visibility and position based on an image's load status. ```xml ``` -------------------------------- ### Timer Node Example Source: https://github.com/rokudev/samples/blob/master/ux components/control/TimerExample/README.md This example demonstrates the usage of the Timer node in Roku SDK. It sets up a Timer to fire every 2 seconds, triggering a callback function to change the text displayed on the screen. The code includes BrightScript for logic and XML for component structure. ```xml ``` -------------------------------- ### Roku Scenegraph API Reference Source: https://github.com/rokudev/samples/blob/master/getting started/NewDeveloperOnboardingSample-master/SampleRSGChannel/docs/Readme.txt Provides an overview of the Roku Scenegraph API, including references to core components like Scene, Renderable Node Markup, and specific UI elements such as Rectangle, Label, and Poster. ```APIDOC SceneGraph API Reference: https://sdkdocs.roku.com/display/sdkdoc/SceneGraph+API+Reference Scene: https://sdkdocs.roku.com/display/sdkdoc/Scene Renderable Node Markup: https://sdkdocs.roku.com/display/sdkdoc/Renderable+Node+Markup UI Elements: Rectangle Label Poster ```