コード例 #1
0
 public void LoadUrl(string url)
 {
     try
     {
         HybirdView.LoadUrl(url);
     }
     catch (Exception e)
     {
         Crashes.TrackError(e);
     }
 }
コード例 #2
0
 //Event Refresh Data Page
 private void SwipeRefreshLayoutOnRefresh(object sender, EventArgs e)
 {
     try
     {
         HybirdView.Reload();
     }
     catch (Exception exception)
     {
         Crashes.TrackError(exception);
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
        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);
            }
        }