How can I add multiple categories using this sample example?
' ********** Copyright 2020 Roku Corp. All Rights Reserved. **********
' Note that we need to import this file in MainLoaderTask.xml using relative path.
' set the name of the function in the Task node component to be executed when the state field changes to RUN
' in our case this method executed after the following cmd: m.contentTask.control = "run"(see Init method in MainScene)
m.top.functionName = "GetContent"
So this is the MainLoaderTask.brs from the SceneGraph example. I figured out how to put my feed weblink in it and it works when I run the test on Roku. But, I have multiple categories. What do I do to the code to make it so I can have multiple categories? I watched through Roku video examples and I'm still not sure how. Thank you.
Re: How can I add multiple categories using this sample example?
Here you are using a grid view component which is best used for all items returned being of the same category, for easy scrolling up, down, left, right, by the user. If you think about it, on a grid, there is no place to put headings for the different category names for the user to the category they are looking at.
If you want different categories you are best to either
a) create a menu / submenu system where each menu / submenu option displays items of a different category
b) use a rowList item where every row has items of different category
c) use a markupList which is a more generic form of a rowList