Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to use geolocation in webview?

$
0
0

I had tried to override the onGeolocationPermissionsShowPrompt, but it said no suitbale method found to override? Are there any problem on my code?

//public class CustChromeWebViewClient : WebChromeClient //{ // // private Context _context; // // public CustChromeWebViewClient(Context oCon) // { // _context = oCon; // // } // // public override bool OnJsAlert(WebView view, string url, string message, JsResult result) // { // new AlertDialog.Builder(_context).SetTitle("Title").SetMessage(message).SetPositiveButton("ok", delegate // { // result.Confirm(); // }).Create().Show(); // // // return true; // // } // // // public override void onGeolocationPermissionsShowPrompt(string origin, GeolocationPermissions.ICallback callback) // { // callback.Invoke (origin, true, true); // // //return true; // // } //}


Viewing all articles
Browse latest Browse all 204402

Trending Articles