Ejemplo n.º 1
0
        /// <summary>
        /// Gets the cookie value under a url and key.
        /// </summary>
        /// <param name="url"></param>
        /// <param name="key"></param>
        /// <returns></returns>
        public string GetCookie(string url, string key)
        {
            Setup();

#if UNIWEBVIEW3_SUPPORTED
            return(UniWebViewInterface.GetCookie(url, key, false));
#elif UNIWEBVIEW2_SUPPORTED
            return(UniWebViewPlugin.GetCookie(url, key));
#else
            return(WWebViewPlugin.GetCookie(url, key));
#endif
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the cookie value under a url and key.
 /// </summary>
 /// <param name="url">The url (domain) where the target cookie is.</param>
 /// <param name="key">The key for target cookie value.</param>
 /// <param name="skipEncoding">
 /// Whether UniWebView should skip encoding the url or not. If set to `false`, UniWebView will try to encode the url parameter before
 /// using it. Otherwise, your original url string will be used to get the cookie if it is valid. Default is `false`.
 /// </param>
 /// <returns>Value of the target cookie under url.</returns>
 public static string GetCookie(string url, string key, bool skipEncoding = false)
 {
     return(UniWebViewInterface.GetCookie(url, key, skipEncoding));
 }