AndroidWebViewCookieManager

class AndroidWebViewCookieManager(val impl: CookieManager) : CookieManager<CookieManager>

Android implementation of CookieManager.

The controller creates this wrapper from AndroidX WebKit Profile.cookieManager when a WebView profile is configured, otherwise it falls back to android.webkit.CookieManager.getInstance. get delegates to CookieManager.getCookie(uri) and parses the returned semicolon-separated name=value pairs into common Cookie objects.

Android's native API does not expose cookie attributes through getCookie, so this common wrapper returns only Cookie.name and Cookie.value. Invalid or empty native entries are ignored.

Constructors

Link copied to clipboard
constructor(impl: CookieManager)

Properties

Link copied to clipboard
open override val impl: CookieManager

The platform-specific cookie manager backing this wrapper.

Functions

Link copied to clipboard
open override fun get(uri: String): Set<Cookie>

Returns cookies that apply to uri in this WebView's native cookie store.