Philzen/WebView-MultiTouch-Polyfill — pull request #14 by fastrde (2012-07-01 14:42:10+00:00)
Title: Wmpjsbridge

Added a nested class to WebClient that implements a JavascriptInterface to get and set WebClients properties without granting full access to the WebClient Class itself.
See Issue #1: https://github.com/Philzen/WebView-MultiTouch-Polyfill/issues/1

The JavascriptInterface is provided as object named wmpjs on javascript side.

Current provided functions:
public String getVersion()

public void setPolyfillAllTouches(boolean value)
public boolean getPolyfillAllTouches()

public void setMaxNativeTouches(int value)
public int getMaxNativeTouches()

public boolean isJsInjected()

public String getConfig() - returns configuration in JSON-String format.