#include <IWebBrowserCookieManager.h>
◆ FCookie
◆ DeleteCookies()
| virtual void IWebBrowserCookieManager::DeleteCookies |
( |
const FString & |
URL = TEXT(""), |
|
|
const FString & |
CookieName = TEXT(""), |
|
|
TFunction< void(int)> |
Completed = nullptr |
|
) |
| |
|
pure virtual |
Delete all browser cookies.
Removes all matching cookies. Leave both URL and CookieName blank to delete the entire cookie database. The actual deletion will be scheduled on the browser IO thread, so the operation may not have completed when the function returns.
- Parameters
-
| URL | The base URL to match when searching for cookies to remove. Use blank to match all URLs. |
| CookieName | The name of the cookie to delete. If left unspecified, all cookies will be removed. |
| Completed | A callback function that will be invoked asynchronously on the game thread when the deletion is complete passing in the number of deleted objects. |
◆ SetCookie()
Sets a cookie given a valid URL.
This function expects each attribute to be well-formed. It will check for disallowed characters (e.g. the ';' character is disallowed within the cookie Value field) and fail without setting the cookie if such characters are found.
- Parameters
-
| URL | The base URL to match when searching for cookies to remove. Use blank to match all URLs. |
| Cookie | The struct defining the state of the cookie to set |
| Completed | A callback function that will be invoked asynchronously on the game thread when the set is complete passing success bool. |
The documentation for this class was generated from the following file: