WebKit2.CookieManager.prototype.get_accept_policy
function get_accept_policy(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for webkit_cookie_manager_get_accept_policy() }
Asynchronously get the cookie acceptance policy of cookie_manager.
When the operation is finished, callback will be called. You can then call WebKit2.CookieManager.prototype.get_accept_policy_finish to get the result of the operation.
- cancellable
a Gio.Cancellable or null to ignore
- callback
a Gio.AsyncReadyCallback to call when the request is satisfied