CookieManager

class CookieManager(pointer: <Error class: unknown class><<Error class: unknown class>>)

Defines how to handle cookies in a #WebKitWebContext.

The WebKitCookieManager defines how to set up and handle cookies. You can get it from a #WebKitWebsiteDataManager with webkit_website_data_manager_get_cookie_manager(), and use it to set where to store cookies with webkit_cookie_manager_set_persistent_storage(), or to set the acceptance policy, with webkit_cookie_manager_get_accept_policy().

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val webkitCookieManagerPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun addCookie(cookie: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously add a #SoupCookie to the underlying storage.

Link copied to clipboard
fun addCookieFinish(result: <Error class: unknown class>): <Error class: unknown class><Boolean>

Finish an asynchronous operation started with webkit_cookie_manager_add_cookie().

Link copied to clipboard
fun connectChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

This signal is emitted when cookies are added, removed or modified.

Link copied to clipboard
fun deleteCookie(cookie: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously delete a #SoupCookie from the current session.

Link copied to clipboard
fun deleteCookieFinish(result: <Error class: unknown class>): <Error class: unknown class><Boolean>

Finish an asynchronous operation started with webkit_cookie_manager_delete_cookie().

Link copied to clipboard
fun getAcceptPolicy(cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously get the cookie acceptance policy of @cookie_manager.

Link copied to clipboard
fun getAcceptPolicyFinish(result: <Error class: unknown class>): <Error class: unknown class><CookieAcceptPolicy>

Finish an asynchronous operation started with webkit_cookie_manager_get_accept_policy().

Link copied to clipboard
fun getAllCookies(cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously get a list of #SoupCookie from @cookie_manager.

Link copied to clipboard
fun getAllCookiesFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>>

Finish an asynchronous operation started with webkit_cookie_manager_get_all_cookies().

Link copied to clipboard
fun getCookies(uri: String, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously get a list of #SoupCookie from @cookie_manager.

Link copied to clipboard
fun getCookiesFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>>

Finish an asynchronous operation started with webkit_cookie_manager_get_cookies().

Link copied to clipboard
fun replaceCookies(cookies: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Asynchronously replace all cookies in @cookie_manager with the given list of @cookies.

Link copied to clipboard
fun replaceCookiesFinish(result: <Error class: unknown class>): <Error class: unknown class><Boolean>

Finish an asynchronous operation started with webkit_cookie_manager_replace_cookies().

Link copied to clipboard

Set the cookie acceptance policy of @cookie_manager as @policy.

Link copied to clipboard

Set non-session cookies.