Example usage for Java android.webkit CookieManager fields, constructors, methods, implement or subclass
The text is from its open source code.
void | flush() Ensures all cookies currently accessible through the getCookie API are written to persistent storage. |
String | getCookie(String url) Gets the cookies for the given URL. |
String | getCookie(WebAddress uri) Gets cookie(s) for a given uri so that it can be set to "cookie:" in http request header. |
CookieManager | getInstance() Gets the singleton CookieManager instance. |
boolean | hasCookies() Gets whether there are stored cookies. |
void | removeAllCookie() Removes all cookies. |
void | removeAllCookies(@Nullable ValueCallback Removes all cookies. |
void | removeExpiredCookie() Removes all expired cookies. |
void | removeSessionCookie() Removes all session cookies, which are cookies without an expiration date. |
void | removeSessionCookies(@Nullable ValueCallback Removes all session cookies, which are cookies without an expiration date. |
void | setAcceptCookie(boolean accept) Sets whether the application's WebView instances should send and accept cookies. |
void | setAcceptFileSchemeCookies(boolean accept) Sets whether the application's WebView instances should send and accept cookies for file scheme URLs. |
void | setAcceptThirdPartyCookies(WebView webview, boolean accept) Sets whether the WebView should allow third party cookies to be set. |
void | setCookie(String url, String value) Sets a cookie for the given URL. |