cdispatch

fun cdispatch(fn: CPointer<CFunction<(webview_t?, COpaquePointer?) -> Unit>>?, args: CValuesRef<*>)

Posts a C function to be executed on the main thread.

It safely schedules the callback to be run on the main thread on the next main loop iteration. You normally do not need to call this function, unless you want to tweak the native window.

Parameters

fn

the callback staticCFunction

args

the arguments for fn