get_accept_policy


Description:

public async CookieAcceptPolicy get_accept_policy (Cancellable? cancellable = null) throws Error

Asynchronously get the cookie acceptance policy of this.

Note that when policy was set to webkit_cookie_policy_accept_no_third_party and ITP is enabled, this will return webkit_cookie_policy_accept_always. See also set_itp_enabled.

When the operation is finished, callback will be called. You can then call get_accept_policy.end to get the result of the operation.

Parameters:

this

a CookieManager

cancellable

a Cancellable or null to ignore

callback

a TaskReadyCallback to call when the request is satisfied

user_data

the data to pass to callback function