Using Common Modules

Published 2014-10-27 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2011,2012,2013,2014 models)

Using Common Modules

The Common Modules allow your application to:

  • Run normally on the screen.
  • Recognize and identify remote control button events.
  • Communicate with the Application Manager.

To use common modules:

  1. 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.


    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>
  2. Create an object.

    var tvKey = new Common.API.TVKeyValue();
  3. Use a known member variable and method.