Skip to content

Instantly share code, notes, and snippets.

@GiorgioNatili
Created July 3, 2015 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GiorgioNatili/bc5ab2f001f5f9c4535e to your computer and use it in GitHub Desktop.
Save GiorgioNatili/bc5ab2f001f5f9c4535e to your computer and use it in GitHub Desktop.
FlowJSInterface
class FlowJSInterface {
private FlowRunnerWrapper wrapper;
private long webview_id;
public FlowJSInterface(FlowRunnerWrapper w, long id) { wrapper = w; webview_id = id; }
public void callflow(String[] args) {
if(args[0] == "setInnerDomainsWhiteList"){
String[] domains = Arrays.copyOfRange(args, 1, args.length);
Set<String> domainsList = new HashSet<String>(Arrays.asList(domains));
// wrapper.setCurrentDomanins(domains);
}else if (args[0] == "setInnerDomainsWhiteList") {
// TODO implement the setInnerDomainsWhiteList Android call
}else{
wrapper.callFlowFromWebView(webview_id, args);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment