I'm working on a project in Xamarin C# and I'm having trouble running  some Java Script. Is there currently a way to call a specific JS function and receive its return value?   I know that JS can be run in a WebView; however, how can I get th...
For Xamarin.iOS/Monotouch it is simple to retrieve a string when evaluating javascript.  e.g.  string elementValue = browser.EvaluateJavascript("document.getElementById('Id').value");  if(elementValue != "") {    DoSomething()...
I have the pdf.js-Plugin in my Xamarin-Forms Project. But pdf-js dont support the touch events (long press for mark, double tap for zoomin/out, pinch to zoom ...).  I look @stackoverflow, but i dont find any correct solution.   Attempt to install ham...
I tried to call C# method from JS with arguments, but I've got an error.  I'm using Xamarin Android (not Xamarin.Forms)  C# Code:  [JavascriptInterface] [Export("test")] public Java.Lang.String Test(Java.Lang.String hello) {     retur...
I have a Xamarin.Forms app. It includes a button like this:   <Button x:Name="Buy_Button" Text="Sat?n Al" FontAttributes="Bold" TextColor="#e2e2e2" BackgroundColor="#2A52BE" FontFamily="Segoe UI" Gri...
I have been able to call JavaScript from C# inside the MainActivity but I'm trying to do so from an object. The majority of my app runs inside a WebView, my JavaScript calls to my C# Interface invoking an asynchronous function and when it's c...
I am prototyping a HTML5 app using the Xamarin framework.  I am trying to connect javascript to C# code and vice versa.  What is the best way to do this?  So far I have tried creating Mono C# bindings to the Cordova framework, which is not an ideal s...
I am building a Xamarin Android webview mobile app. I have gotten to a point that I need to debug some Javascript code but I cannot get the debugger to work on the razor views in Xamarin. Not a single breakpoint is hit on the client-side during debug...
I'm trying to share some data from an Activity to JavaScript, but all my results have failed, this is my current code:  C#  var webView = FindViewById<WebView>(Resource.Id.webView);  webView.SetWebChromeClient(new WebChromeClient());  webVi...
So recently I was trying to build my app for Android 6 by setting the android:targetSdkVersion="23" in the manifest file, everything went well but then I noticed the strange behavior of webview.  In my app I first load some content into the w...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.