Hello
I need your help.
In this code, how can I get to get the current url
using System;
using Android.Webkit;
using Java.Interop;
using static Java.Util.ResourceBundle;
using Android.App;
namespace smartShare.Droid{
public class JSBridge : Java.Lang.Object{
readonly WeakReference<UniversalWebViewRenderer> hybridWebViewRenderer;
public JSBridge(UniversalWebViewRenderer Universal_bridRenderer)
{
hybridWebViewRenderer =
new WeakReference<UniversalWebViewRenderer(Universal_bridRenderer);
}
[JavascriptInterface]
[Export("invokeAction")]
public void InvokeAction(string data)
{
if (hybridWebViewRenderer != null &&
hybridWebViewRenderer.TryGetTarget(out UniversalWebViewRenderer UniversalbridRenderer))
{
UniversalbridRenderer.Element.InvokeAction(data);
}
}
}
}
I would like to instantiate a new step when the url is end.html
I relied heavily on https://developer.xamarin.com/samples/xamarin-forms/CustomRenderers/HybridWebView/
THANKS
Helder