Example #1
0
 public void DidReceiveScriptMessage(WKUserContentController userContentController, WKScriptMessage message)
 {
     ContextBridge.BridgeEvaluator(Element, message.Body.ToString(), delegate(string result)
     {
         Control.EvaluateJavaScript((NSString)result, GetJavascriptEvaluationResultHandler());
     });
 }
Example #2
0
    public void InvokeAction(string data)
    {
        BlazorWebViewRenderer blazorRenderer;

        if (blazorViewRenderer != null && blazorViewRenderer.TryGetTarget(out blazorRenderer))
        {
            ContextBridge.BridgeEvaluator((BlazorWebView)blazorRenderer.Element, data);
        }
    }
Example #3
0
 private void Control_ScriptNotify(object sender, Windows.UI.Xaml.Controls.NotifyEventArgs e)
 {
     ContextBridge.BridgeEvaluator((BlazorWebView)Element, e.Value);
 }