Callbacks

expect object Callbacks

Kotlin lambdas behind C callbacks. Pass register's result as the C userData and userOnly or argUser as the function pointer; the lambda receives the callback's leading pointer argument (or NullPointer). A once callback frees itself after firing; release the others.

actual object Callbacks

Kotlin lambdas behind C callbacks. Pass register's result as the C userData and userOnly or argUser as the function pointer; the lambda receives the callback's leading pointer argument (or NullPointer). A once callback frees itself after firing; release the others.

actual object Callbacks

Kotlin lambdas behind C callbacks. Pass register's result as the C userData and userOnly or argUser as the function pointer; the lambda receives the callback's leading pointer argument (or NullPointer). A once callback frees itself after firing; release the others.

actual object Callbacks

Kotlin lambdas behind C callbacks. Pass register's result as the C userData and userOnly or argUser as the function pointer; the lambda receives the callback's leading pointer argument (or NullPointer). A once callback frees itself after firing; release the others.

Properties

Link copied to clipboard

void (*)(T* arg, void* userData).

void (*)(T* arg, void* userData).

void (*)(T* arg, void* userData).

void (*)(T* arg, void* userData).

Link copied to clipboard

void (*)(T* arg, void* userData, AsyncCallStatus status).

void (*)(T* arg, void* userData, AsyncCallStatus status).

void (*)(T* arg, void* userData, AsyncCallStatus status).

void (*)(T* arg, void* userData, AsyncCallStatus status).

Link copied to clipboard

FilaBufferCallback, void (*)(void* buffer, size_t size, void* userData): the lambda gets the buffer.

FilaBufferCallback, void (*)(void* buffer, size_t size, void* userData): the lambda gets the buffer.

FilaBufferCallback, void (*)(void* buffer, size_t size, void* userData): the lambda gets the buffer.

FilaBufferCallback, void (*)(void* buffer, size_t size, void* userData): the lambda gets the buffer.

Link copied to clipboard

void (*)(void* userData).

void (*)(void* userData).

void (*)(void* userData).

void (*)(void* userData).

Link copied to clipboard

void (*)(void* userData, AsyncCallStatus status).

void (*)(void* userData, AsyncCallStatus status).

void (*)(void* userData, AsyncCallStatus status).

void (*)(void* userData, AsyncCallStatus status).

Functions

Link copied to clipboard
expect fun register(once: Boolean, fn: (arg: NativePointer) -> Unit): NativePointer
actual fun register(once: Boolean, fn: (NativePointer) -> Unit): NativePointer
actual fun register(once: Boolean, fn: (NativePointer) -> Unit): NativePointer
actual fun register(once: Boolean, fn: (NativePointer) -> Unit): NativePointer
Link copied to clipboard
expect fun registerStatus(once: Boolean, fn: (arg: NativePointer, status: Int) -> Unit): NativePointer

register for userStatus and argUserStatus: the lambda also gets the AsyncCallStatus ordinal.

actual fun registerStatus(once: Boolean, fn: (NativePointer, status: Int) -> Unit): NativePointer

register for userStatus and argUserStatus: the lambda also gets the AsyncCallStatus ordinal.

actual fun registerStatus(once: Boolean, fn: (NativePointer, status: Int) -> Unit): NativePointer

register for userStatus and argUserStatus: the lambda also gets the AsyncCallStatus ordinal.

actual fun registerStatus(once: Boolean, fn: (NativePointer, status: Int) -> Unit): NativePointer

register for userStatus and argUserStatus: the lambda also gets the AsyncCallStatus ordinal.

Link copied to clipboard
expect fun release(userData: NativePointer)
actual fun release(userData: NativePointer)
actual fun release(userData: NativePointer)
actual fun release(userData: NativePointer)