aiongg / khiin

Khí-ín Tâi-gí phah jī hoat 起引台語拍字法
MIT License
4 stars 3 forks source link

Engine can be instantiated in C++ and commands sent through JNI #9

Closed aiongg closed 1 year ago

aiongg commented 1 year ago

The khiin::engine::Engine is created as a std::unique_ptr. It should be released and delivered back to Kotlin as a regular Long to keep the Engine instance available throughout the app lifecycle. Engine methods should pass this pointer back through JNI, together with the protobuf command to send to the engine. Engine instance must be deleted when the app/service shuts down.