engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IWebBrowserSingleton类 参考abstract

A singleton class that takes care of general web browser tasks 更多...

#include <IWebBrowserSingleton.h>

Public 成员函数

virtual TSharedPtr< IWebBrowserWindow > CreateBrowserWindow (TSharedPtr< FCEFWebBrowserWindow > &BrowserWindowParent, TSharedPtr< FWebBrowserWindowInfo > &BrowserWindowInfo)=0
 Create a new web browser window 更多...
 
virtual TSharedPtr< IWebBrowserWindow > CreateBrowserWindow (void *OSWindowHandle, FString InitialURL, bool bUseTransparency, bool bThumbMouseButtonNavigation, TOptional< FString > ContentsToLoad=TOptional< FString >(), bool ShowErrorMessage=true, FColor BackgroundColor=FColor(255, 255, 255, 255), int BrowserFrameRate=24, const TArray< FString > &AltRetryDomains=TArray< FString >())=0
 Create a new web browser window 更多...
 
virtual void DeleteBrowserCookies (FString URL=TEXT(""), FString CookieName=TEXT(""), TFunction< void(int)> Completed=nullptr)=0
 Delete all browser cookies. 更多...
 
virtual UMaterialInterface * GetDefaultMaterial ()=0
 Get a reference to UWebBrowser's default material
 
virtual UMaterialInterface * GetDefaultTranslucentMaterial ()=0
 Get a reference to UWebBrowser's transparent material
 
virtual TSharedRef< IWebBrowserWindowFactory > GetWebBrowserWindowFactory () const =0
 
virtual bool IsDevToolsShortcutEnabled ()=0
 Returns whether the CTRL/CMD-SHIFT-I shortcut to show the Chromium Dev tools window is enabled. 更多...
 
virtual bool RegisterSchemeHandlerFactory (FString Scheme, FString Domain, IWebBrowserSchemeHandlerFactory *WebBrowserSchemeHandlerFactory)=0
 Registers a custom scheme handler factory, for a given scheme and domain. 更多...
 
virtual void SetDefaultMaterial (UMaterialInterface *InDefaultMaterial)=0
 Set a reference to UWebBrowser's default material
 
virtual void SetDefaultTranslucentMaterial (UMaterialInterface *InDefaultMaterial)=0
 Set a reference to UWebBrowser's translucent material
 
virtual void SetDevToolsShortcutEnabled (bool Value)=0
 Enable or disable CTRL/CMD-SHIFT-I shortcut to show the Chromium Dev tools window. 更多...
 
virtual void SetJSBindingToLoweringEnabled (bool bEnabled)=0
 Enable or disable to-lowering of JavaScript object member bindings. 更多...
 
virtual bool UnregisterSchemeHandlerFactory (IWebBrowserSchemeHandlerFactory *WebBrowserSchemeHandlerFactory)=0
 Unregister a custom scheme handler factory. 更多...
 
virtual ~IWebBrowserSingleton ()
 Virtual Destructor
 

详细描述

A singleton class that takes care of general web browser tasks

成员函数说明

◆ CreateBrowserWindow() [1/2]

virtual TSharedPtr< IWebBrowserWindow > IWebBrowserSingleton::CreateBrowserWindow ( TSharedPtr< FCEFWebBrowserWindow > &  BrowserWindowParent,
TSharedPtr< FWebBrowserWindowInfo > &  BrowserWindowInfo 
)
pure virtual

Create a new web browser window

参数
BrowserWindowParentThe parent browser window
BrowserWindowInfoInfo for setting up the new browser window
返回
New Web Browser Window Interface (may be null if not supported)

◆ CreateBrowserWindow() [2/2]

virtual TSharedPtr< IWebBrowserWindow > IWebBrowserSingleton::CreateBrowserWindow ( void *  OSWindowHandle,
FString  InitialURL,
bool  bUseTransparency,
bool  bThumbMouseButtonNavigation,
TOptional< FString >  ContentsToLoad = TOptional< FString >(),
bool  ShowErrorMessage = true,
FColor  BackgroundColor = FColor(255, 255, 255, 255),
int  BrowserFrameRate = 24,
const TArray< FString > &  AltRetryDomains = TArray< FString >() 
)
pure virtual

Create a new web browser window

参数
OSWindowHandleHandle of OS Window that the browser will be displayed in (can be null)
InitialURLURL that the browser should initially navigate to
bUseTransparencyWhether to allow transparent rendering of pages
ContentsToLoadOptional string to load as a web page
ShowErrorMessageWhether to show an error message in case of loading errors.
BackgroundColorOpaque background color used before a document is loaded and when no document color is specified.
BrowserFrameRateThe framerate of the browser in FPS
返回
New Web Browser Window Interface (may be null if not supported)

◆ DeleteBrowserCookies()

virtual void IWebBrowserSingleton::DeleteBrowserCookies ( FString  URL = TEXT(""),
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.

参数
URLThe base URL to match when searching for cookies to remove. Use blank to match all URLs.
CookieNameThe name of the cookie to delete. If left unspecified, all cookies will be removed.
CompletedA callback function that will be invoked asynchronously on the game thread when the deletion is complete passing in the number of deleted objects.

◆ GetWebBrowserWindowFactory()

virtual TSharedRef< IWebBrowserWindowFactory > IWebBrowserSingleton::GetWebBrowserWindowFactory ( ) const
pure virtual
返回
A factory object that can be used to construct additional WebBrowserWindows on demand.

◆ IsDevToolsShortcutEnabled()

virtual bool IWebBrowserSingleton::IsDevToolsShortcutEnabled ( )
pure virtual

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

The relevant handlers for spawning new browser windows have to be set up correctly in addition to this flag being true before anything is shown.

返回
a boolean value indicating whether the keyboard shortcut is enabled or not.

◆ RegisterSchemeHandlerFactory()

virtual bool IWebBrowserSingleton::RegisterSchemeHandlerFactory ( FString  Scheme,
FString  Domain,
IWebBrowserSchemeHandlerFactory *  WebBrowserSchemeHandlerFactory 
)
pure virtual

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

The domain is ignored if the scheme is not a browser built in scheme and all requests will go through this factory.

参数
SchemeThe scheme name to handle.
DomainThe domain name to handle.
WebBrowserSchemeHandlerFactoryThe factory implementation for creating request handlers for this scheme.

◆ SetDevToolsShortcutEnabled()

virtual void IWebBrowserSingleton::SetDevToolsShortcutEnabled ( bool  Value)
pure virtual

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

The value defaults to true on debug builds, otherwise false.

The relevant handlers for spawning new browser windows have to be set up correctly in addition to this flag being true before anything is shown.

参数
Valuea boolean value to enable or disable the keyboard shortcut.

◆ SetJSBindingToLoweringEnabled()

virtual void IWebBrowserSingleton::SetJSBindingToLoweringEnabled ( bool  bEnabled)
pure virtual

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

Due to how JavaScript to UObject bridges require the use of FNames for building up the JS API objects, it is possible for case-sensitivity issues to develop if an FName has been previously created with differing case to your function or property names. To-lowering the member names allows a guaranteed casing for the web page's JS to reference.

Default behavior is enabled, so that all JS side objects have only lowercase members.

参数
bEnableda boolean value to enable or disable the to-lowering.

◆ UnregisterSchemeHandlerFactory()

virtual bool IWebBrowserSingleton::UnregisterSchemeHandlerFactory ( IWebBrowserSchemeHandlerFactory *  WebBrowserSchemeHandlerFactory)
pure virtual

Unregister a custom scheme handler factory.

The factory may still be used by existing open browser windows, but will no longer be provided for new ones.

参数
WebBrowserSchemeHandlerFactoryThe factory implementation to remove.

该类的文档由以下文件生成: