Doug McCluer
04/26/2024, 7:19 PMobject MyObj {
val MYBOOL: Boolean by lazy { false }
}
I'm trying to get the value of MYBOOL
from my C++ code, but I'm unsure of the correct syntax/signature
Were this a simple Java Object or static class field, I'd know what to do but with object
and lazy
I don't have a good sense of what their native side representation looks like. If anyone can shed some light I'd be thankful!Doug McCluer
04/26/2024, 7:21 PMMichael Krussel
04/26/2024, 7:25 PMgetMYBOOL() -> Boolean
function to be created and you can access that function from JNI like you would any other function.
You'll have to first get access to the instance of MyObj (I think it has a static`getInstance` function. Going through the decompiler will show you how it gets converted to byte code and what it would have looked like in Java.