Exemplo n.º 1
0
        /// <summary>
        /// Navigate an HTML string in current webview.
        /// </summary>
        /// <param name="html">The HTML string to use as the contents of the webpage.</param>
        public void NavigateString(string html)
        {
            Setup();

#if UNIWEBVIEW3_SUPPORTED
            UniWebViewInterface.LoadHTMLString(listener.Name, html, string.Empty, false);
#elif UNIWEBVIEW2_SUPPORTED
            UniWebViewPlugin.LoadHTMLString(listener.Name, html, string.Empty);
#else
            WWebViewPlugin.LoadHTMLString(listener.Name, html, string.Empty);
#endif
        }
Exemplo n.º 2
0
 /// <summary>
 /// Load an HTML string in current web view.
 /// </summary>
 /// <param name="htmlString">The HTML string to use as the contents of the webpage.</param>
 /// <param name="baseUrl">The url to use as the page's base url.</param>
 /// <param name="skipEncoding">
 /// Whether UniWebView should skip encoding the baseUrl or not. If set to `false`, UniWebView will try to encode the baseUrl parameter before
 /// using it. Otherwise, your original url string will be used as the baseUrl if it is valid. Default is `false`.
 /// </param>
 public void LoadHTMLString(string htmlString, string baseUrl, bool skipEncoding = false)
 {
     UniWebViewInterface.LoadHTMLString(listener.Name, htmlString, baseUrl, skipEncoding);
 }