text: /**
   * @author Manjunath Davanam <manjunathd@ilimi.in>
   */
  
  window.org = { "ekstep": {} }
  var RendererInterface = function () {
  	var _parent = window.parent
  	var _telemetryService = _parent.TelemetryService
  
  	this.htmlInterfaceObj = {}
  	this.htmlInterfaceObj.parent = _parent
  	this.htmlInterfaceObj.EkstepRendererAPI = _parent.EkstepRendererAPI
  
  	/**
       * Interface method to dispatch events to do some actions
       * @memberof org.ekstep.contentrenderer.interface
       */
  	this.htmlInterfaceObj.dispatchEvent = function (eventName) {
  		this.EkstepRendererAPI.dispatchEvent(eventName)
  	}
  
  	/**
       * Interface to Access Content Metadata
       * @param  {String} contentId identifier of the game
       * @memberof org.ekstep.contentrenderer.interface
       */
  	this.htmlInterfaceObj.getcontentMetadata = function (contentId, cb) {
  		this.EkstepRendererAPI.getContentMetadata(contentId, function () {
  			if (cb) cb()
  		})
  	}
  
  	/**
       * Interface to access content-renderer configuration
       * @memberof org.ekstep.contentrenderer.interface
       */
  	this.htmlInterfaceObj.getConfig = function () {
  		this.EkstepRendererAPI.getGlobalConfig()
  	}
  
  	/**
       * Interface method to goto end page
       * @memberof org.ekstep.contentrenderer.interface
       */
  	this.htmlInterfaceObj.gotoEndPage = function () {
  		this.dispatchEvent("renderer:content:end")
  	}
  
  	/**
       * Interface is to verify the env of game is running
       * @memberof org.ekstep.contentrenderer.interface
       */
  	this.htmlInterfaceObj.isMobile = function () {
  		return !!window.cordova
  	}
  
  	/**
       * Interface is to exit the game
       * @memberof org.ekstep.contentrenderer.interface
       */
  	this.htmlInterfaceObj.exit = function () {
  		this.parent.exitApp()
  	}
  
  	/**
       * Interface method to get telemetry service
       * @memberof org.ekstep.contentrenderer.interface
       */
  	this.htmlInterfaceObj.getTelemetryService = function () {
  		return this.telemetryService
  	}
  
  	this.htmlInterfaceObj.telemetryService = {
  		/**
           * Interface to log temetry interact(INTERACT) event
           * @param  {Object} data: Telemetry event data
           * @memberof org.ekstep.contentrenderer.interface
           */
  		interact: function (data) {
  			_telemetryService.interact(data.type, data.id, data.extype, data.eks)
  		},
  
  		/**
           * Interface to log telemetry Exdata(EXDATA) event
           * @param  {Object} data: Telemetry event data
           * @memberof org.ekstep.contentrenderer.interface
           */
  		exdata: function (data) {
  			_telemetryService.xapi(data)
  		},
  
  		/**
           * Interface to log telemetry response(RESPONSE) event
           * @param  {Object} data: Telemetry event data
           * @memberof org.ekstep.contentrenderer.interface
           */
  		response: function (data) {
  			_telemetryService.interact(data.type, data.id, data.extype, data.eks)
  		},
  
  		/**
           * Interface to get assess start event
           * @param  {Object} data: Telemetry event data
           * @memberof org.ekstep.contentrenderer.interface
           */
  		assessmentStart: function (data) {
  			return _telemetryService.assess(data.qid, data.subj, data.qlevel, data.data)
  		},
  
  		/**
           * Interface to log telemetry assess(ASSESS) event
           * @param  {Object} event: assess start event data
           * @param  {Object} data: data
           * @memberof org.ekstep.contentrenderer.interface
           */
  		assess: function (event, data) {
  			_telemetryService.assessEnd(event, data)
  		},
  
  		/**
           * Interface to log telemetry assess(ASSESS) event
           * @param  {Object} data: Telemetry event data
           * @memberof org.ekstep.contentrenderer.interface
           */
  		impression: function (data) {
  			_telemetryService.navigate(data.stageid, data.stageto, data.data)
  		}
  	}
  
  	return this.htmlInterfaceObj
  }
  org.ekstep.contentrenderer = window.parent.org.ekstep.contentrenderer
  
  // RI : Renderer Interface
  org.ekstep.contentrenderer.interface = window.PI = window.RI = new RendererInterface()
  