public void LoadUrl(string url) { try { HybirdView.LoadUrl(url); } catch (Exception e) { Crashes.TrackError(e); } }
//Event Refresh Data Page private void SwipeRefreshLayoutOnRefresh(object sender, EventArgs e) { try { HybirdView.Reload(); } catch (Exception exception) { Crashes.TrackError(exception); } }
public void EvaluateJavascript(string name) { try { if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat) { HybirdView.EvaluateJavascript(name, JavascriptCallback); } else { HybirdView.LoadUrl(name); } } catch (Exception e) { Crashes.TrackError(e); } }
public void UseRenderPriorityFastPostLoad() { try { HybirdView.Settings.SetRenderPriority(WebSettings.RenderPriority.High); HybirdView.Settings.SetAppCacheEnabled(true); HybirdView.Settings.SetLayoutAlgorithm(WebSettings.LayoutAlgorithm.NarrowColumns); if (Build.VERSION.SdkInt >= BuildVersionCodes.Kitkat) { HybirdView.SetLayerType(LayerType.Hardware, null); } else { HybirdView.SetLayerType(LayerType.Software, null); } } catch (Exception e) { Crashes.TrackError(e); } }