public void DidReceiveScriptMessage(WKUserContentController userContentController, WKScriptMessage message) { ContextBridge.BridgeEvaluator(Element, message.Body.ToString(), delegate(string result) { Control.EvaluateJavaScript((NSString)result, GetJavascriptEvaluationResultHandler()); }); }
public void InvokeAction(string data) { BlazorWebViewRenderer blazorRenderer; if (blazorViewRenderer != null && blazorViewRenderer.TryGetTarget(out blazorRenderer)) { ContextBridge.BridgeEvaluator((BlazorWebView)blazorRenderer.Element, data); } }
private void Control_ScriptNotify(object sender, Windows.UI.Xaml.Controls.NotifyEventArgs e) { ContextBridge.BridgeEvaluator((BlazorWebView)Element, e.Value); }