cbind
Content copied to clipboard
Binds a C callback so that it will appear under the given name as a global JavaScript function.
Callback receives a request string. Request string is a JSON array of all the arguments passed to the JavaScript function. Internally it uses webview_init
. Use webview_return
to response to the JS request.
Parameters
name
the name of the global JavaScript function
callback
the C callback function staticCFunction.
arg
the context.