Java android.webkit CookieManager fields, constructors, methods, implement or subclass

Example usage for Java android.webkit CookieManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.webkit CookieManager.

The text is from its open source code.

Method

voidflush()
Ensures all cookies currently accessible through the getCookie API are written to persistent storage.
StringgetCookie(String url)
Gets the cookies for the given URL.
StringgetCookie(WebAddress uri)
Gets cookie(s) for a given uri so that it can be set to "cookie:" in http request header.
CookieManagergetInstance()
Gets the singleton CookieManager instance.
booleanhasCookies()
Gets whether there are stored cookies.
voidremoveAllCookie()
Removes all cookies.
voidremoveAllCookies(@Nullable ValueCallback callback)
Removes all cookies.
voidremoveExpiredCookie()
Removes all expired cookies.
voidremoveSessionCookie()
Removes all session cookies, which are cookies without an expiration date.
voidremoveSessionCookies(@Nullable ValueCallback callback)
Removes all session cookies, which are cookies without an expiration date.
voidsetAcceptCookie(boolean accept)
Sets whether the application's WebView instances should send and accept cookies.
voidsetAcceptFileSchemeCookies(boolean accept)
Sets whether the application's WebView instances should send and accept cookies for file scheme URLs.
voidsetAcceptThirdPartyCookies(WebView webview, boolean accept)
Sets whether the WebView should allow third party cookies to be set.
voidsetCookie(String url, String value)
Sets a cookie for the given URL.