Ejemplo n.º 1
0
        /// <summary>
        /// Clears all cookies from webview.
        /// </summary>
        public void ClearCookies()
        {
            Setup();

#if UNIWEBVIEW3_SUPPORTED
            UniWebViewInterface.ClearCookies();
#elif UNIWEBVIEW2_SUPPORTED
            UniWebViewPlugin.CleanCookie(listener.name, string.Empty);
#else
            WWebViewPlugin.ClearCookies();
#endif
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Clean the cookie using in the app.
 /// </summary>
 /// <param name="key">The key under which you want to clean the cache.</param>
 /// <description>
 /// Try to clean cookies under the specified key using in the app.
 /// If you leave the key as null or send an empty string as key, all cache will be cleared.
 /// This method will clear the cookies in memory and try to
 /// sync the change to disk. The memory opreation will return
 /// right away, but the disk operation is async and could take some time.
 /// Caution, in Android, there is no way to remove a specified cookie.
 /// So this method will call setCookie method with the key to set
 /// it to an empty value instead. Please refer to Android
 /// documentation on CookieManager for more information.
 /// The key parameter will be ignored at all on Windows Phone 8. All cookie will be cleared.
 /// </description>
 public void CleanCookie(string key = null)
 {
     UniWebViewPlugin.CleanCookie(gameObject.name, key);
 }
Ejemplo n.º 3
0
 public void CleanCookie(string key = null)
 {
     UniWebViewPlugin.CleanCookie(((Object)((Component)this).get_gameObject()).get_name(), key);
 }