Sha256: c46a0797f9a1751978a582d0bfe43b3d6d3621e2e3a024b9fd47bfbb5354a221

Contents?: true

Size: 1012 Bytes

Versions: 27

Compression:

Stored size: 1012 Bytes

Contents

'##COPYRIGHT HEADER##

sub main(externalParams)

  port = createObject("roMessagePort")
  screen = createObject("roSGScreen")
  screen.setMessagePort(port)

  m.global = screen.getGlobalNode()
  m.global.observeField("redData", port)

  m.input = createObject("roInput")
  m.input.setMessagePort(port)

  device = createObject("roDeviceInfo")
  device.setMessagePort(port)
  device.enableLinkStatusEvent(true)


  scene = screen.createScene("Main")
  screen.show()

  scene.observeField("exitApplication", port)
  scene.observeField("sessionLength", port)

  scene.signalBeacon("AppLaunchComplete")
  scene.signalBeacon("AppDialogInitiate")
  scene.signalBeacon("AppDialogComplete")

  while(true)
    msg = wait(0, port)
    msgType = type(msg)

    if invalid <> msg
      if "roInputEvent" = msgType
        info = msg.getInfo()
        if invalid <> info
          mediaType = externalParams.mediaType
          contentId = externalParams.contentId
        end if
      end if
    end if
  end while
end sub

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
roku_builder-4.30.0 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.29.9 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.29.8 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.29.7 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.29.6 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.29.4 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.29.2 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.29.1 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.28.0 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.27.2 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.27.1 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.27.0 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.26.2 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.26.1 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.26.0 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.25.6 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.25.5 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.25.4 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.25.3 test/roku_builder/test_files/analyzer_test/source/main.brs
roku_builder-4.25.1 test/roku_builder/test_files/analyzer_test/source/main.brs