2 * Copyright (c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.ComponentModel;
24 /// Event arguments that passed via the WebView.PageLoadError.
26 [EditorBrowsable(EditorBrowsableState.Never)]
27 public class WebViewPageLoadErrorEventArgs : EventArgs
30 /// Enumeration for the load error code
32 [EditorBrowsable(EditorBrowsableState.Never)]
33 public enum LoadErrorCode
44 /// Can't show the page for this MIME type.
52 /// Cannot connect to the network.
56 /// Fail to look up host from the DNS.
60 /// Fail to SSL/TLS handshake.
64 /// Received certificate is invalid.
68 /// Connection timeout.
72 /// Too many redirects.
76 /// Too many requests during this load.
84 /// Unsupported scheme.
88 /// User authentication failed on the server.
92 /// Web server has an internal server error.
97 private WebView _webView;
99 /// The view for displaying webpages.
101 [EditorBrowsable(EditorBrowsableState.Never)]
102 public WebView WebView
114 private string _pageUrl;
116 /// The url string of current webpage.
118 [EditorBrowsable(EditorBrowsableState.Never)]
119 public string PageUrl
131 private LoadErrorCode _errorCode;
133 /// The code for the current error.
135 [EditorBrowsable(EditorBrowsableState.Never)]
136 public LoadErrorCode ErrorCode