The Hello World example prints the text "Hello World" on the screen. It is a minimal svg document which you can use as a startpoint for your own portals.
<foreignObject requiredExtensions="application/x-motorola-toi" hidden="true">
</foreignObject>
The above code is required to use the TOI2 interface. When you include it, a global variable called toi
is available within your javascript (a property of the javascript window object). This is the basis for all interaction with the TOI2 API. Each platform service is available as a member variable of toi
, for example, toi.informationService
, toi.videoOutputService
, toi.mediaPlayerService
and so on.
Technically, this is not required for the Hello World application, as it does not use the TOI2 interface for anything.