top

CAPH.PLATFORM.DTV.BROWSER

Browser is an object which provides various kinds of methods related to Web Browser or Web Engine which an application runs on. The main APIs of Browser are 'browserType' and 'checkSupportedFeature.' Using browserType, a user can detect a Web Browser type. Using checkSupportedFeature method, a user can determine whether to use HTML5 LocalStorage.


Methods

browserType

Description
Returns the type of browser.
Parameters
■Void
Return■Object
  - Object
  - name, sectvbd, webkit, year, s아
Emulator SupportY
SDK Constraintnone
Example
var browser = caph.platform.dtv.Browser.browserType( );

checkSupportedFeature

Description
Checks if the browser supports the specific feature or not
Parameters
■feature 
  - string 
  - value to check whether web browser supports it. Currently checking 'html5_localstorage' is only available.
Return■Number
  - supported : 1, not supported : 0
Emulator SupportY
SDK Constraintnone
Example
var feature = 'html5_localstorage';
var support = caph.platform.dtv.Browser.checkSupportedFeature(feature);