cBind

fun cBind(    name: String,     callback: CPointer<CFunction<(CPointer<ByteVar>?, CPointer<ByteVar>?, COpaquePointer?) -> Unit>>?,     arg: CValuesRef<*>)

Binds a C callback so that it will appear under the given name as a global JS function.

Callback receives a request string. Request string is a JSON array of all the arguments passed to the JS function. Internally it uses webview_init. If you need binding a Kotlin function, see WebviewKo.bind

Parameters

name

the name of the global JS function

callback

the C callback function staticCFunction.

arg

the context.