5 Non-browser web views have a special JavaScript API that provides
6 integration with Tolino UI elements.
8 Example is the ShopWebViewActivity that is opens when clicking the
9 "To the shop" link and the recommendations/advertisements on the main page.
14 When the page has been loaded in the web view,
15 a function ``android_init`` is invoked.
16 This can be used to detect if the page has been loaded on a Tolino.
21 Each web view has a JavaScript variable ``screenController``
22 that provides the interface to the Tolino UI.
25 ``screenController.hideNavigationHeader()``
26 Hides the header when it was enabled with ``showNavigationHeader``.
28 ``screenController.hideProgressDialog()``
31 ``screenController.refreshScreen()``
32 Re-draw the e-ink screen
34 ``screenController.setNavigationHeaderTitle("my header")``
35 Override the title in the navigation header.
36 Call ``showNavigationHeader`` first.
38 ``screenController.setNavigationHeaderUrl("epublishing://closeshop")``
39 Set the URL of the "back" arrow button.
41 ``screenController.setTokens("accesstoken", "refreshtoken")``
44 ``screenController.showNavigationHeader("header title")``
45 Show the native navigation header and set its title
47 ``screenController.showProgressDialog()``
50 ``screenController.processHTML("<html>")``
51 Firmware 15.2: Does nothing
53 Firmware 15.4.0, Vision 6/Epos 3: Logs the HTML content to the application log.