Skip to content

Native method signatures #43

@haelix888

Description

@haelix888

2 questions:
(1) You say "The type of the first parameter of the lambda must be jni::JNIEnv&. The type of the second parameter must be either jni::jclass*". Yet, in your Calculator example there in only the Env: "jni::jlong Add(jni::JNIEnv&, jni::jlong a, jni::jlong b)". Why?
(2) Why would you require the native class to take these 1 or 2 extra parameters? Isn't the purpose of your lib to present an already-defined class in a form consumable from Java?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions