I have a webview. I want to call
public void evaluateJavascript(String script, ValueCallback<String> resultCallback)
this method.
Here is the ValueCallback interface:
public interface ValueCallback<T> { public void onReceiveValue(T value); };
Here is my kotlin code:
webView.evaluateJavascript("a", ValueCallback<String> {
Does anyone have an idea to override the onReceiveValue method in kotlin? I tried Convert Java to Kotlin, but the result is as follows:
v.evaluateJavascript("e") { }
Thanks!
source share