getCookiesWhile

suspend fun getCookiesWhile(url: String? = null, includeHttpOnly: Boolean = false, delay: Long = 200, predicate: KCEFCookieManager.CookiesWhile = CookiesWhile { delayIteration, _ -> delayIteration <= 0 }): List<CefCookie>(source)

Collect cookies and return the list afterward

Return

list of CefCookie collected while predicate

Parameters

url

results are filtered by the given url scheme, host, domain and path.

includeHttpOnly

if true HTTP-only cookies will also be included in the results.

delay

the time to wait between predicate checks in milliseconds

predicate

return true as long as you want to collect