Search code examples
java-native-interfaceexternalkotlinkeyword

What is the purpose of `external` keyword in Kotlin?


What exactly is the purpose of the external keyword in Kotlin?

I guess it's for JNI like native in Java, but I can't seem to find any actual reference or documentation on this.


Solution

  • Indeed, it's an equivalent of Java's native. It's currently missing from the documentation but there's an issue to add it.