Hi
I have been trying this without any success.
I have got a HybridWebView and I would like to update a BindableProperty when a page is finished loading.
the property was correctly set up like this:
public static readonly BindableProperty IsLoggedInProperty = BindableProperty.Create(
propertyName: "IsLoggedIn",
returnType: typeof(bool),
declaringType: typeof(HybridWebView),
defaultValue: default(bool));
public bool IsLoggedIn
{
get { return (bool)GetValue(IsLoggedInProperty); }
set { SetValue(IsLoggedInProperty, value); }
}
I first tried the Navigated event in HybridWebView. but this is not reliable as iOS and Android got their own methods.
I would like to update IsLoggedIn from Android and iOS projects when the pages are loaded. My reason for this, is I am checking a session cookie name. How can I apply this?
I have also tried OnElementChanged in both platforms, but that is not the right event for when the page finished loading.
Thanks