/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-04-07 * Changed: 2024-05-25 * * */ #ifndef LS_STD_JNI_CLASS_PARAMETER_HPP #define LS_STD_JNI_CLASS_PARAMETER_HPP #include #include #include #include #include /* * @class(name: 'JniClassParameter', package: 'core') * */ namespace ls::std::core::experimental { class LS_STD_DYNAMIC_GOAL JniClassParameter { public: JniClassParameter(); ~JniClassParameter(); [[nodiscard]] JNIEnv *getJavaEnvironment(); [[nodiscard]] jobject getJavaObject(); [[nodiscard]] ::std::shared_ptr getJniApi() const; void setJavaEnvironment(JNIEnv *_environment); void setJavaObject(jobject _javaObject); void setJniApi(const ::std::shared_ptr &_jniApi); private: JNIEnv *environment{}; jobject javaObject{}; ::std::shared_ptr jniApi{}; }; } #endif