cinterop with C Libraries
Bind a C dependency for use in shared code.
Reaching Into C
Sometimes the code you need is a plain C library. Kotlin/Native can call it directly through a tool called cinterop. 🔌
What cinterop Produces
cinterop reads C headers and generates Kotlin bindings. After that, the C functions and types look like ordinary Kotlin declarations you can call.
All lessons in this course
- Use Apple Frameworks from Kotlin
- Memory & ARC in Kotlin/Native
- cinterop with C Libraries
- Wrap a Native SDK Cleanly