Browse files


  • Loading branch information...
ruslanys committed Dec 16, 2017
1 parent 7e0e199 commit 366292a12595b966ffcd4a1b95221d8c0c79e123
Showing with 3 additions and 3 deletions.
  1. +3 −3
@@ -613,12 +613,12 @@ abstract method.
Also note that this feature works only for Java interop; since Kotlin has proper function types, automatic conversion
of functions into implementations of Kotlin interfaces is unnecessary and therefore unsupported.
## Using JNI with Kotlin
## Использование JNI в Kotlin
To declare a function that is implemented in native (C or C++) code, you need to mark it with the `external` modifier:
Чтобы объявить функцию, реализованную на нативном (C или C++) коде, Вам нужно пометить ее модификатором `external`:
``` kotlin
external fun foo(x: Int): Double
The rest of the procedure works in exactly the same way as in Java.
В остальном, процедура работы аналогична Java.

0 comments on commit 366292a

Please sign in to comment.