bind
Binds a Kotlin callback so that it will appear under the given name as a global JS function.
Parameters
the name of the global JS function
the callback function which receives the request parameter in JSON as input and return the response JSON. If you want to reject the Promise
, throw JSRejectException in fn
Binds a Kotlin callback so that it will appear under the given name as a global JS function.
Parameters
the name of the global JS function
the callback function which receives the request parameter in JSON as input and return the response JSON. If you want to reject the Promise
, throw JSRejectException in fn
Binds a Kotlin callback so that it will appear under the given name as a global JS function.
Parameters
the name of the global JS function
the callback function which receives the request parameter in JSON as input and return the response JSON. If you want to reject the Promise
, throw JSRejectException in fn