main.brs
/simple_raf_sdk2_sample/source/main.brs

Main()

Roku Advertising Framework for Video Ads Main Entry Point
Creation and configuration of list menu and video screens.


addSection(sectiontext as roString)

Add section for list items menu grouping.

Parameters:
sectiontext - [String] title of the section.


addItem(itemtext as roString)

Add item to list menu.

Parameters:
itemtext - [String] title of the item.


createPlayPosMsg(position as roInt, completed as roBoolean, started as roBoolean)

Video events handling.

Parameters:
position - [Integer] video position.
completed - [Boolean] flag if video is completed
started - [Boolean] flag if video is started
Returns:
[AA] object of video event in structured format.