title: Kotlin use Java callback interface
body: <p>I have a WebView. I want to call </p>
  
  <pre><code>public void evaluateJavascript(String script, ValueCallback&lt;String&gt; resultCallback)
  </code></pre>
  
  <p>this method.</p>
  
  <p>Here is the ValueCallback interface:</p>
  
  <pre><code>public interface ValueCallback&lt;T&gt; {
      /**
       * Invoked when the value is available.
       * @param value The value.
       */
      public void onReceiveValue(T value);
  };
  </code></pre>
  
  <p>Here is my kotlin code:</p>
  
  <pre><code>webView.evaluateJavascript("a", ValueCallback&lt;String&gt; {
              // cant override function
          })
  </code></pre>
  
  <p>Anyone have idea to override the onReceiveValue method in kotlin?
  I tried the "Convert Java to Kotlin" but result is the next:</p>
  
  <pre><code>v.evaluateJavascript("e") {  }
  </code></pre>
  
  <p>Thanks!</p>