![]() |
UCefView
|
Represents the CEF context. This class provides access to CEF functionality within Unreal Engine. More...
#include <CefContext.h>
Public Member Functions | |
virtual void | Initialize (FSubsystemCollectionBase &Collection) override |
Called when the engine is initialized. | |
virtual void | Deinitialize () override |
Called when the engine is deinitialized. | |
bool | InitializeCef () |
Initializes CEF. | |
void | ShutdownCef () |
Shuts down CEF. | |
bool | bIsCefInitialized () const |
Checks if CEF is initialized. | |
void | AddLocalFolderResource (const FString &InPath, const FString &InUrl, int32 InPriority=0) |
Adds a url mapping item with local web resource directory. This works for all QCefView instances created subsequently. | |
void | AddArchiveFileResource (const FString &pInPathath, const FString &InUrl, const FString &InPassword, int32 InPriority=0) |
Adds a url mapping item with local archive (.zip) file which contains the web resource. This works for all QCefView instances created subsequently. | |
bool | AddCookie (const FString &InName, const FString &InValue, const FString &InDomain, const FString &InUrl) |
Adds a cookie to the CEF context, this cookie is accessible from all browsers created with this context. | |
bool | DeleteAllCookies () |
Deletes all cookies from the CEF context. | |
bool | AddCrossOriginWhitelistEntry (const FString &InSourceOrigin, const FString &InTargetSchema, const FString &InTargetDomain, bool InAllowTargetSubdomains) |
Adds an entry to the cross-origin access whitelist. For details please refer to: https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L81C23-L81C23. | |
bool | RemoveCrossOriginWhitelistEntry (const FString &InSourceOrigin, const FString &InTargetSchema, const FString &InTargetDomain, bool InAllowTargetSubdomains) |
Removes an entry from the cross-origin access whitelist. For details please refer to: https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L91C12-L91C12. | |
bool | ClearCrossOriginWhitelistEntry () |
Removes all entries from the cross-origin access whitelist. | |
Public Attributes | |
UCefSettings * | Settings = GetMutableDefault<UCefSettings>() |
The settings for the CEF context. | |
Represents the CEF context. This class provides access to CEF functionality within Unreal Engine.
void UCefContext::AddArchiveFileResource | ( | const FString & | pInPathath, |
const FString & | InUrl, | ||
const FString & | InPassword, | ||
int32 | InPriority = 0 ) |
Adds a url mapping item with local archive (.zip) file which contains the web resource. This works for all QCefView instances created subsequently.
pInPathath | The path to the local archive file. |
InUrl | The url to be mapped to. |
InPassword | The password of the archive. |
InPriority | The priority. |
bool UCefContext::AddCookie | ( | const FString & | InName, |
const FString & | InValue, | ||
const FString & | InDomain, | ||
const FString & | InUrl ) |
Adds a cookie to the CEF context, this cookie is accessible from all browsers created with this context.
InName | The cookie item name. |
InValue | The cookie item value. |
InDomain | The applicable domain name. |
InUrl | The applicable url. |
bool UCefContext::AddCrossOriginWhitelistEntry | ( | const FString & | InSourceOrigin, |
const FString & | InTargetSchema, | ||
const FString & | InTargetDomain, | ||
bool | InAllowTargetSubdomains ) |
Adds an entry to the cross-origin access whitelist. For details please refer to: https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L81C23-L81C23.
InSourceOrigin | The source origin. |
InTargetSchema | The target schema. |
InTargetDomain | The target domain. |
InAllowTargetSubdomains | Whether to allow subdomain or not. |
void UCefContext::AddLocalFolderResource | ( | const FString & | InPath, |
const FString & | InUrl, | ||
int32 | InPriority = 0 ) |
Adds a url mapping item with local web resource directory. This works for all QCefView instances created subsequently.
InPath | The path to the local resource directory. |
InUrl | The url to be mapped to. |
InPriority | The priority. |
bool UCefContext::bIsCefInitialized | ( | ) | const |
Checks if CEF is initialized.
bool UCefContext::ClearCrossOriginWhitelistEntry | ( | ) |
Removes all entries from the cross-origin access whitelist.
|
overridevirtual |
Called when the engine is deinitialized.
bool UCefContext::DeleteAllCookies | ( | ) |
Deletes all cookies from the CEF context.
|
overridevirtual |
Called when the engine is initialized.
bool UCefContext::InitializeCef | ( | ) |
Initializes CEF.
bool UCefContext::RemoveCrossOriginWhitelistEntry | ( | const FString & | InSourceOrigin, |
const FString & | InTargetSchema, | ||
const FString & | InTargetDomain, | ||
bool | InAllowTargetSubdomains ) |
Removes an entry from the cross-origin access whitelist. For details please refer to: https://github.com/chromiumembedded/cef/blob/605c2bac86415dcec1e2902cdc46dc11c1ad026a/include/cef_origin_whitelist.h#L91C12-L91C12.
InSourceOrigin | The source origin. |
InTargetSchema | The target schema. |
InTargetDomain | The target domain. |
InAllowTargetSubdomains | Whether to allow subdomain or not. |
void UCefContext::ShutdownCef | ( | ) |
Shuts down CEF.
UCefSettings* UCefContext::Settings = GetMutableDefault<UCefSettings>() |
The settings for the CEF context.