Undocumented functions for use in background
hb_webview_dispatch( w, ptrFunc, context )
hb_webview_bind( w, name, ptrFunc, context )
hb_webview_return( w, id, status, result )
context = hb_webview_create_context( w, funcName, callType, ptrCargo )
hb_webview_set_callHB_func( cHB_callback_function_name )
hb_webview_HbBridgeJS( par_cJsPromiseId, par_cJsonParameter,
par_ptrContext, par_cFuncName, par_nCallType, no_translate_param_toANSI,
no_translate_ret_toUTF8 )
Navigate Demo
#include "hb_webview.ch"
FUNCTION Main
LOCAL w, allowDevTools := .F.
w = hb_webview_create( allowDevTools, NIL )
hb_webview_set_size(w, 800, 480, WEBVIEW_HINT_NONE)
hb_webview_set_title(w, "Harbour WebView - Navigate Demo")
hb_webview_navigate(w, "https://harbour.github.io/doc/")
hb_webview_run(w)
hb_webview_terminate( w )
RETURN NIL
Bind Demo
#include "hb_webview.ch"
REQUEST hb_alert, hb_memoread, hb_memowrit
FUNCTION Main
LOCAL w, html, allowDevTools := .T.
LOCAL context1, context2