bytedeco/javacpp

How to handle AssetManager using JavaCpp?

Open

#792 aberto em 23 de jan. de 2025

Ver no GitHub
 (8 comments) (0 reactions) (0 assignees)Java (620 forks)batch import
help wantedquestion

Métricas do repositório

Stars
 (4.279 stars)
Métricas de merge de PR
 (Mesclagem média 2d) (1 fundiu PR em 30d)

Description

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.

Guia do colaborador