1
Prerequisites
Before you begin, make sure you have:
- HarmonyOS (API 12+) device or emulator
- DevEco Studio with HarmonyOS SDK
- A
.soshared library (pre-built or compiled from source)
2
Install arkffi
3
Import and use
4
Use the raw bridge
For lower-level control, use the NAPI functions directly:
5
Work with C pointers
6
Create callbacks