need help invoking callback interface #199
Unanswered
therealkenc
asked this question in
Q&A
Replies: 1 comment
-
Slightly modified with a
It was nonobv to me how to get at the I could not find a way to cooerce the signature of a jni:Class method (f.e. If there is a way to do this "properly" without reaching for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting my feed wet with jni-bind but could not figure out the correct way to invoke a Java interface passed as an argument.
Java setup. I do a
new GreetingCallback() {...}
and callJniTest.greet()
elsewhere.C++ side
I assume that usage of
jni::LocalObject<GreetingCallback>
which is commented out is plain incorrect. Invoking the callback with CallVoidMethod() works, but I am guessing there is a more straightforward way to do this.Any help or suggestions very much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions