Using Common Modules
The Common Modules allow your application to:
To use common modules:
Include common modules you want to use in the index.html file. In order to prevent occurrence of any parsing order error, it is recommended that you include them at the top of the document. $MANAGER_WIDGET allows your applications to access the common modules provided.
Note
In the SDK, $MANAGER_WIDGET points to the commonlib folder in which the SDK is installed.
<script type="text/javascript" src="$MANAGER_WIDGET/Common/API/TVKeyValue.js"></script>
Create an object.
var tvKey = new Common.API.TVKeyValue();
Use a known member variable and method.
alert(tvKey.KEY_LEFT);