We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To call a Java method from C++, you currently must do quite a lot. As an example, consider Number::floatValue. You must:
Number::floatValue
class Float
Name
"java/lang/Float"
jni::Class<Float>
GetMethod<jni::jfloat ()>(env, "floatValue")
Object<Number>
number.Call(env, method)
Ideally, you'd be able to just do number.floatValue(). Is there any way we can get closer to that?
number.floatValue()
Refs mapbox/mapbox-gl-native#8809
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To call a Java method from C++, you currently must do quite a lot. As an example, consider
Number::floatValue
. You must:class Float
with aName
method returning"java/lang/Float"
jni::Class<Float>
GetMethod<jni::jfloat ()>(env, "floatValue")
on itObject<Number>
instance, donumber.Call(env, method)
Ideally, you'd be able to just do
number.floatValue()
. Is there any way we can get closer to that?Refs mapbox/mapbox-gl-native#8809
The text was updated successfully, but these errors were encountered: