public override void OnContextCreated(MyCefContextArgs args) { //sample !!! //call window.test001() from js CefV8Value cefV8Global = args.context.GetGlobal(); Cef3FuncHandler funcHandler = Cef3FuncHandler.CreateFuncHandler(Test001); Cef3Func func = Cef3Func.CreateFunc("test001", funcHandler); cefV8Global.Set("test001", func); }
public static Cef3Func CreateFunc(string name, Cef3FuncHandler funcHandler) { IntPtr func = Cef3Binder.MyCefJs_CreateFunction(name, funcHandler.Ptr); return(new Cef3Func(func)); }