IWebBrowserSingleton

A singleton class that takes care of general web browser tasks

Windows
MacOS
Linux

References

Module

WebBrowser

Header

/Engine/Source/Runtime/WebBrowser/Public/IWebBrowserSingleton.h

Include

#include "IWebBrowserSingleton.h"

Syntax

class IWebBrowserSingleton

Remarks

A singleton class that takes care of general web browser tasks

Destructors

Name Description

Public function Virtual

~IWebBrowserSingleton()

Virtual Destructor

Functions

Name Description

Public function Const

FString

 

ApplicationCacheDir()

Public function

TSharedPtr< ...

 

CreateBrowserWindow

(
    TSharedPtr< FCEFWebBrowserWindow > ...,
    TSharedPtr< FWebBrowserWindowInfo >...
)

Create a new web browser window

Public function

TSharedPtr< ...

 

CreateBrowserWindow

(
    const FCreateBrowserWindowSettings ...
)

Public function Const

TSharedPtr< ...

 

GetCookieManager()

Public function Const

TSharedPtr< ...

 

GetCookieManager

(
    TOptional< FString > ContextId
)

Public function

UMaterialInt...

 

GetDefaultMaterial()

Get a reference to UWebBrowser's default material

Public function

UMaterialInt...

 

GetDefaultTranslucentMaterial()

Get a reference to UWebBrowser's transparent material

Public function Const

TSharedRef< ...

 

GetWebBrowserWindowFactory()

Public function

bool

 

IsDevToolsShortcutEnabled()

Returns whether the CTRL/CMD-SHIFT-I shortcut to show the Chromium Dev tools window is enabled.

Public function

bool

 

RegisterContext

(
    const FBrowserContextSettings& Set...
)

Public function

bool

 

RegisterSchemeHandlerFactory

(
    FString Scheme,
    FString Domain,
    IWebBrowserSchemeHandlerFactory...
)

Registers a custom scheme handler factory, for a given scheme and domain.

Public function

void

 

SetDefaultMaterial

(
    UMaterialInterface* InDefaultM...
)

Set a reference to UWebBrowser's default material

Public function

void

 

SetDefaultTranslucentMaterial

(
    UMaterialInterface* InDefaultM...
)

Set a reference to UWebBrowser's translucent material

Public function

void

 

SetDevToolsShortcutEnabled

(
    bool Value
)

Enable or disable CTRL/CMD-SHIFT-I shortcut to show the Chromium Dev tools window.

Public function

void

 

SetJSBindingToLoweringEnabled

(
    bool bEnabled
)

Enable or disable to-lowering of JavaScript object member bindings.

Public function

bool

 

UnregisterContext

(
    const FString& ContextId
)

Public function

bool

 

UnregisterSchemeHandlerFactory

Unregister a custom scheme handler factory.

Deprecated Functions

Name Description

Public function

TSharedPtr< ...

 

CreateBrowserWindow

(
    void* OSWindowHandle,
    FString InitialURL,
    bool bUseTransparency,
    bool bThumbMouseButtonNavigation,
    TOptional< FString > ContentsToLoad,
    bool ShowErrorMessage,
    FColor BackgroundColor,
    int BrowserFrameRate,
    const TArray< FString >& AltRetryD...
)

Please use the new overload that takes a settings struct.

Public function

void

 

DeleteBrowserCookies

(
    FString URL,
    FString CookieName,
    TFunction< void> Completed
)

Please use the CookieManager instead via GetCookieManager().

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss