webview_dispatch
abstract fun webview_dispatch( webview: Pointer?, fn: WebviewJNA.WebviewLibrary.webview_dispatch_fn_callback, args: Pointer? = Pointer.NULL)
Content copied to clipboard
Posts a 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
webview
the handle of webview, usually returned by webview_create
fn
the callback
args
please ignore it and keep it Pointer.NULL
unless you know what you're doing.