Top "Kotlin-interop" questions

Usage of Kotlin together with other languages, most notably Java.

Kotlin use Java callback interface

I have a WebView. I want to call public void evaluateJavascript(String script, ValueCallback<String> resultCallback) this method. …

kotlin kotlin-interop
Converting Thread/Runnable implementation from Java to Kotlin

I have an existing Java class ThreadUtils with a method every that looks like: public class ThreadUtil { public static Thread …

java kotlin kotlin-interop
Kotlin: how to pass array to Java annotation

I want to use @OneOf annotation from package io.dropwizard.validation; Java usage: @OneOf(value = {"m", "f"}) Kotlin usage: ??? I've …

kotlin kotlin-interop
Assignment not allowed in while expression?

In Java we can usually perform an assignment within the while condition. However Kotlin complains about it. So the following …

kotlin kotlin-interop