Skip to main content
1

Prerequisites

Before you begin, make sure you have:
  • HarmonyOS (API 12+) device or emulator
  • DevEco Studio with HarmonyOS SDK
  • A .so shared library (pre-built or compiled from source)
Architecture support:
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