Does anyone maybe know how to invoke a Kotlin lamb...
# getting-started
z
Does anyone maybe know how to invoke a Kotlin lambda from JNI? So given this function
Copy code
external fun test(callback: () -> Unit)
I'd like to invoke the callback on the native side, but I can't really figure out how kotlin is compiling the lambda function to be able to get the class and the method ID necessary on the JNI side to invoke it
y
I believe it gets compiled to a
KFunction1
which has an
invoke
method