Represents a web browser widget that can be embedded in a UMG widget.
More...
#include "InternetBrowser.h"
|
void | ReloadWebPage () |
| Reloads the current web page in the internet browser.
|
|
Represents a web browser widget that can be embedded in a UMG widget.
◆ UInternetBrowser()
UInternetBrowser::UInternetBrowser |
( |
const FObjectInitializer & | ObjectInitializer | ) |
|
◆ AddBookmark()
◆ DeleteAllCookies()
void UInternetBrowser::DeleteAllCookies |
( |
UPARAM(DisplayName="On Cookies Deleted") FOnCookieDeleteComplete | Delegate | ) |
|
public UInternetBrowser::DeleteAllCookies Delete the entire cookie database.
- Parameters
-
Delegate | [FOnCookieDeleteComplete] A callback delegate that will be invoked when the deletion is complete passing number of deleted cookies. |
◆ DeleteCookie()
void UInternetBrowser::DeleteCookie |
( |
const FString & | URL, |
|
|
const FString & | CookieName, |
|
|
UPARAM(DisplayName="On Cookies Deleted") FOnCookieDeleteComplete | Delegate ) |
public UInternetBrowser::DeleteCookie Deletes the given cookie for the given URL.
- Parameters
-
URL | [const FString&] URL to match when searching for cookie to remove. |
CookieName | [const FString&] The name of the cookie to delete. If left unspecified, all cookies will be removed. |
Delegate | [FOnCookieDeleteComplete] A callback delegate that will be invoked when the deletion is complete passing number of deleted cookies. |
◆ ExecuteJavascript()
void UInternetBrowser::ExecuteJavascript |
( |
const FString & | ScriptText | ) |
|
◆ GetAddressbarUrl()
FText UInternetBrowser::GetAddressbarUrl |
( |
| ) |
const |
public UInternetBrowser::GetAddressbarUrl const Gets the URL that appears in the address bar, this may not be the URL that is currently loaded in the frame.
- Returns
- [FText] URL that appears in the address bar
◆ GetBookmarks()
◆ GetBrowserProtocolLink()
FString UInternetBrowser::GetBrowserProtocolLink |
( |
| ) |
const |
◆ GetCleanDomainName()
FText UInternetBrowser::GetCleanDomainName |
( |
const FText & | InURL | ) |
|
|
static |
◆ GetCookieName()
FString UInternetBrowser::GetCookieName |
( |
const FBrowserCookie & | InCookie | ) |
const |
|
inline |
◆ GetHistory()
public UInternetBrowser::GetHistory const Returns array of FWebHistory. This array contains all the web pages the user has visited if History is enabled.
- Returns
- [TArray<FWebHistory>] History array.
◆ GetTitleText()
FText UInternetBrowser::GetTitleText |
( |
| ) |
const |
◆ GetUrl()
FString UInternetBrowser::GetUrl |
( |
| ) |
const |
◆ InitializeInternetBrowser()
void UInternetBrowser::InitializeInternetBrowser |
( |
const FString | InOverrideURL = "" | ) |
|
◆ IsHistoryValid()
◆ LoadString()
void UInternetBrowser::LoadString |
( |
FString | Contents, |
|
|
FString | DummyURL ) |
public UInternetBrowser::LoadString Load a string as data to create a web page.
- Parameters
-
Contents | [FString] HTML string to load. |
DummyURL | [FString] Dummy URL for the page. |
◆ LoadURL()
bool UInternetBrowser::LoadURL |
( |
const FText & | URL | ) |
|
public UInternetBrowser::LoadURL Loads the given URL with support for internal browser URLs. Automatically adds https:// protocol if not present. So if you pass google.com to URL, it will be converted to https://google.com
- Parameters
-
URL | [const FText &] URL to load. Adds https:// protocol if not present. |
- Returns
- [bool] True if URL is loaded.
◆ RebuildWidget()
TSharedRef< SWidget > UInternetBrowser::RebuildWidget |
( |
| ) |
|
|
overridevirtual |
◆ ReleaseSlateResources()
void UInternetBrowser::ReleaseSlateResources |
( |
bool | bReleaseChildren | ) |
|
|
overridevirtual |
◆ ReloadWebPage()
void UInternetBrowser::ReloadWebPage |
( |
| ) |
|
|
protected |
Reloads the current web page in the internet browser.
This method checks if the web browser widget is valid. If it is, it checks if the web browser widget is currently loading a page using the IsLoading() function. If the web browser widget is loading a page, the StopLoad() function is called to stop the loading. If the web browser widget is not loading a page, the Reload() function is called to reload the current web page.
◆ RemoveBookmark()
◆ SetCookie()
void UInternetBrowser::SetCookie |
( |
const FString & | URL, |
|
|
const FBrowserCookie & | InCookie, |
|
|
UPARAM(DisplayName="On Cookie Set") FOnCookieSetComplete | Delegate ) |
public UInternetBrowser::SetCookie Sets a cookie for given 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 | [const FString&] URL to match when searching for cookie to set. |
InCookie | [const FBrowserCookie &] Cookie to set. |
Delegate | [FOnCookieSetComplete] A callback delegate that will be invoked when the set is complete passing success bool. |
◆ SetCookieForAll()
void UInternetBrowser::SetCookieForAll |
( |
const FBrowserCookie & | InCookie, |
|
|
UPARAM(DisplayName="On Cookie Set") FOnCookieSetComplete | Delegate ) |
public UInternetBrowser::SetCookieForAll Sets a cookie for all URLs. 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
-
InCookie | [const FBrowserCookie&] Cookie to set. |
Delegate | [FOnCookieSetComplete] A callback delegate that will be invoked when the set is complete passing success bool. |
◆ OnAccessDenied
FOnAccessDenied UInternetBrowser::OnAccessDenied |
◆ OnBeforePopup
FOnBeforePopup UInternetBrowser::OnBeforePopup |
◆ OnLoadBrowserURL
FOnLoadBrowserURL UInternetBrowser::OnLoadBrowserURL |
◆ OnLoadCompleted
FOnWebBrowserLoadCompleted UInternetBrowser::OnLoadCompleted |
◆ OnLoadError
FOnWebBrowserLoadError UInternetBrowser::OnLoadError |
◆ OnLoadStarted
FOnWebBrowserLoadStarted UInternetBrowser::OnLoadStarted |
◆ OnUrlChanged
FOnUrlChanged UInternetBrowser::OnUrlChanged |
The documentation for this class was generated from the following files: