KCEFCookieManager

class KCEFCookieManager @JvmOverloads constructor(_cookieManager: CefCookieManager? = scopeCatching { CefCookieManager.getGlobalManager() }.getOrNull())(source)

Constructors

Link copied to clipboard
constructor(_cookieManager: CefCookieManager? = scopeCatching { CefCookieManager.getGlobalManager() }.getOrNull())

Types

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface CookieCallback
Link copied to clipboard
fun interface CookiesWhile

Functions

Link copied to clipboard
suspend fun deleteAllCookies(): Boolean

Shorthand for deleteCookies which deletes all cookies

Link copied to clipboard
Link copied to clipboard
suspend fun deleteCookies(url: String? = null, cookieName: String? = null): Boolean

Delete all cookies that match the specified parameters.

Link copied to clipboard
fun deleteCookiesBlocking(url: String? = null, cookieName: String? = null): Boolean

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
suspend fun setCookie(url: String, cookie: CefCookie): Boolean

Set cookie for a given url

Link copied to clipboard

Blocking equivalent of setCookie