content: sub Main(input as Dynamic)
    if input <> invalid
      if input.reason <> invalid
        if input.reason = "ad" then
        end if
      end if
      if input.contentID <> invalid
        m.contentID = input.contentID
        print "contentID is: " + input.contentID
      end if
    end if
    showHeroScreen()
  end sub
  
  ' Initializes the scene and shows the main homepage.
  ' Handles closing of the channel.
  sub showHeroScreen()
    screen = CreateObject("roSGScreen")
    m.port = CreateObject("roMessagePort")
    screen.setMessagePort(m.port)
    scene = screen.CreateScene("ContentRowList")
    screen.show()
  
    while(true)
      msg = wait(0, m.port)
      msgType = type(msg)
      if msgType = "roSGScreenEvent"
        if msg.isScreenClosed() then return
      end if
    end while
  end sub
  