示例#1
0
 private void OnPageLoadError(object sender, WebViewPageLoadErrorEventArgs e)
 {
     Log.Info(tag, $"load error, Url: {e.PageLoadError.Url}");
     Log.Info(tag, $"load error, Code: {e.PageLoadError.Code}");
     Log.Info(tag, $"load error, Description: {e.PageLoadError.Description}");
     Log.Info(tag, $"load error, Type: {e.PageLoadError.Type}");
 }
示例#2
0
 private void OnPageLoadError(object sender, WebViewPageLoadErrorEventArgs e)
 {
     Log.Info("WebView", $"------------web view load error, Url: {e.PageLoadError.Url}-------");
     Log.Info("WebView", $"------------web view load error, Code: {e.PageLoadError.Code}-------");
     Log.Info("WebView", $"------------web view load error, Description: {e.PageLoadError.Description}-------");
     Log.Info("WebView", $"------------web view load error, Type: {e.PageLoadError.Type}-------");
 }
示例#3
0
        public void WebViewPageLoadErrorEventArgsConstructor()
        {
            tlog.Debug(tag, $"WebViewPageLoadErrorEventArgsConstructor START");

            using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai"))
            {
                WebPageLoadError le = new WebPageLoadError(webview.SwigCPtr.Handle, false);

                var testingTarget = new WebViewPageLoadErrorEventArgs(le);
                Assert.IsNotNull(testingTarget, "null handle");
                Assert.IsInstanceOf <WebViewPageLoadErrorEventArgs>(testingTarget, "Should return WebViewPageLoadErrorEventArgs instance.");

                le.Dispose();
            }

            tlog.Debug(tag, $"WebViewPageLoadErrorEventArgsConstructor END (OK)");
        }