KCEFCookieManager
class KCEFCookieManager @JvmOverloads constructor(_cookieManager: CefCookieManager? = scopeCatching {
CefCookieManager.getGlobalManager()
}.getOrNull())(source)
Constructors
Link copied to clipboard
constructor(_cookieManager: CefCookieManager? = scopeCatching {
CefCookieManager.getGlobalManager()
}.getOrNull())
Functions
Link copied to clipboard
Shorthand for deleteCookies which deletes all cookies
Link copied to clipboard
Blocking equivalent of deleteAllCookies
Link copied to clipboard
Delete all cookies that match the specified parameters.
Link copied to clipboard
Blocking equivalent of deleteCookies
Link copied to clipboard
fun getCookies(url: String? = null, includeHttpOnly: Boolean = false, callback: KCEFCookieManager.CookieCallback): Boolean
Get each cookie in a callback
Link copied to clipboard
suspend fun getCookiesWhile(url: String? = null, includeHttpOnly: Boolean = false, delay: Long = 200, predicate: KCEFCookieManager.CookiesWhile = CookiesWhile { delayIteration, _ -> delayIteration <= 0 }): List<CefCookie>
Collect cookies and return the list afterward
Link copied to clipboard
fun getCookiesWhileBlocking(url: String? = null, includeHttpOnly: Boolean = false, delay: Long = 200, predicate: KCEFCookieManager.CookiesWhile = CookiesWhile { delayIteration, _ -> delayIteration <= 0 }): List<CefCookie>
Blocking equivalent of getCookiesWhile
Link copied to clipboard
Blocking equivalent of setCookie