Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #95 from dpogue/cordova6
Browse files Browse the repository at this point in the history
Implement evaluateJavascript method for Cordova 6
  • Loading branch information
fujunwei committed Sep 2, 2016
2 parents c5250fc + bb64c18 commit 3eed424
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions platforms/android/src/org/crosswalk/engine/XWalkWebViewEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Licensed to the Apache Software Foundation (ASF) under one
import android.graphics.Color;
import android.util.Log;
import android.view.View;
import android.webkit.ValueCallback;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -302,6 +303,16 @@ public void loadUrl(String url, boolean clearNavigationStack) {
webView.load(url, null);
}

/**
* This API is used in Cordova-Android 6.0.0 override from
*
* CordovaWebViewEngine.java
* @since Cordova 6.0
*/
public void evaluateJavascript(String js, ValueCallback<String> callback) {
webView.evaluateJavascript(js, callback);
}

public boolean isXWalkReady() {
return activityDelegate.isXWalkReady();
}
Expand Down

0 comments on commit 3eed424

Please sign in to comment.