CookieManager.getAcceptPolicy
void getAcceptPolicy(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously get the cookie acceptance policy of cookie_manager.
Note that when policy was set to [webkit.types.CookieAcceptPolicy.NoThirdParty] and ITP is enabled, this will return [webkit.types.CookieAcceptPolicy.Always]. See also webkit_website_data_manager_set_itp_enabled().
When the operation is finished, callback will be called. You can then call [webkit.cookie_manager.CookieManager.getAcceptPolicyFinish] to get the result of the operation.
Parameters
cancellable | a #GCancellable or null to ignore |
callback | a #GAsyncReadyCallback to call when the request is satisfied |