UXsollaWebBrowser
Inherits from UWidget
Public Functions
| Name | |
|---|---|
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam (FOnUrlChanged , const FText & , Text ) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams (FOnBeforePopup , FString , URL , FString , Frame ) | |
| DECLARE_DYNAMIC_MULTICAST_DELEGATE (FOnPageLoaded ) | |
| void | LoadURL
(FString NewURL) Loads the specified URL. |
| void | LoadHtml
(FString Contents, FString DummyURL) Loads the specified HTML page content. |
| void | ExecuteJavascript
(FString ScriptText) Executes a JavaScript string in the context of the web page. |
| FString | GetUrl
() const Returns the currently loaded URL. |
| void | ClearCache
() const Clear browser cache (cookies etc.). |
| void | GoBack
() const Return to previous page. |
| void | GoForward
() const Go to next page. |
| virtual void | ReleaseSlateResources (bool bReleaseChildren) override |
Protected Functions
| Name | |
|---|---|
| virtual TSharedRef< SWidget > | RebuildWidget () override |
| void | HandleOnUrlChanged (const FText & Text) |
| bool | HandleOnBeforePopup (FString URL, FString Frame) |
| void | HandleOnPageLoaded () |
Public Attributes
| Name | |
|---|---|
| FOnUrlChanged | OnUrlChanged Called when the URL changes. |
| FOnBeforePopup | OnBeforePopup Called when a pop-up is about to spawn. |
| FOnPageLoaded | OnPageLoaded Called when page loaded. |
Protected Attributes
| Name | |
|---|---|
| FString | InitialURL URL that the browser will initially navigate to. |
| bool | bSupportsTransparency Should the browser window support transparency. |
| TSharedPtr< class SWebBrowser > | WebBrowserWidget |
Public Functions Documentation
function DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam
- C++
1DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(
2 FOnUrlChanged ,
3 const FText & ,
4 Text
5)
function DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams
- C++
1DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(
2 FOnBeforePopup ,
3 FString ,
4 URL ,
5 FString ,
6 Frame
7)
function DECLARE_DYNAMIC_MULTICAST_DELEGATE
- C++
1DECLARE_DYNAMIC_MULTICAST_DELEGATE(
2 FOnPageLoaded
3)
function LoadURL
- C++
1void LoadURL(
2 FString NewURL
3)
Loads the specified URL.
Parameters:
- NewURL New URL to load.
function LoadHtml
- C++
1void LoadHtml(
2 FString Contents,
3 FString DummyURL
4)
Loads the specified HTML page content.
Parameters:
- Contents HTMPL page content.
function ExecuteJavascript
- C++
1void ExecuteJavascript(
2 FString ScriptText
3)
Executes a JavaScript string in the context of the web page.
Parameters:
- ScriptText JavaScript string to execute.
function GetUrl
- C++
1FString GetUrl() const
Returns the currently loaded URL.
Return: The URL, or empty string if no document is loaded.
function ClearCache
- C++
1void ClearCache() const
Clear browser cache (cookies etc.).
function GoBack
- C++
1void GoBack() const
Return to previous page.
function GoForward
- C++
1void GoForward() const
Go to next page.
function ReleaseSlateResources
- C++
1virtual void ReleaseSlateResources(
2 bool bReleaseChildren
3) override
Protected Functions Documentation
function RebuildWidget
- C++
1virtual TSharedRef< SWidget > RebuildWidget() override
function HandleOnUrlChanged
- C++
1void HandleOnUrlChanged(
2 const FText & Text
3)
function HandleOnBeforePopup
- C++
1bool HandleOnBeforePopup(
2 FString URL,
3 FString Frame
4)
function HandleOnPageLoaded
- C++
1void HandleOnPageLoaded()
Public Attributes Documentation
variable OnUrlChanged
FOnUrlChanged OnUrlChanged;
Called when the URL changes.
variable OnBeforePopup
FOnBeforePopup OnBeforePopup;
Called when a pop-up is about to spawn.
variable OnPageLoaded
FOnPageLoaded OnPageLoaded;
Called when page loaded.
Protected Attributes Documentation
variable InitialURL
FString InitialURL;
URL that the browser will initially navigate to.
The URL should include the protocol, eg http://
variable bSupportsTransparency
bool bSupportsTransparency;
Should the browser window support transparency.
variable WebBrowserWidget
TSharedPtr< class SWebBrowser > WebBrowserWidget;
Found a typo or other text error? Select the text and press Ctrl+Enter.