bytedeco/javacpp

How to handle AssetManager using JavaCpp?

开放

#792 创建于 2025年1月23日

 (8 条评论) (0 个反应) (0 位负责人)Java (620 个派生)batch import
help wantedquestion

仓库指标

星标
 (4,279 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

I have a c++ library that needs access to the java Android AssetManager. (android.content.res.AssetManager) To pass it to the library, I am using a custom JNI that takes this AssetManager as a jobect and then converts it to the equivalent c++ class AAssetManager (defines in android/asset_manager.h) using AAssetManager_fromJava(jobject*)

I was wondering how to handle this using javacpp?

I tried to do infoMap.put(new Info("AAssetManager").javaNames("AssetManager").define()) but the generated NativeLibrary.java doesn't define the AssetManager class.

贡献者指南