Options to configure WebBrowserComponent. More...
#include <juce_WebBrowserComponent.h>
Classes | |
class | WinWebView2 |
Options specific to the WebView2 backend. More... | |
Public Types | |
enum class | Backend { defaultBackend , ie , webview2 } |
Public Member Functions | |
Options | withBackend (Backend backend) const |
Use a particular backend to create the WebViewBrowserComponent. | |
Options | withKeepPageLoadedWhenBrowserIsHidden () const |
Tell JUCE to keep the web page alive when the WebBrowserComponent is not visible. | |
Options | withUserAgent (String ua) const |
Use a specific user agent string when requesting web pages. | |
Options | withWinWebView2Options (const WinWebView2 &winWebView2Options) const |
Backend | getBackend () const noexcept |
bool | keepsPageLoadedWhenBrowserIsHidden () const noexcept |
String | getUserAgent () const |
WinWebView2 | getWinWebView2BackendOptions () const |
Options to configure WebBrowserComponent.
Use a particular backend to create the WebViewBrowserComponent.
JUCE will silently fallback to the default backend if the selected backend is not supported. To check if a specific backend is supported on your platform or not, use WebBrowserComponent::areOptionsSupported.
References withMember().
Options WebBrowserComponent::Options::withKeepPageLoadedWhenBrowserIsHidden | ( | ) | const |
Tell JUCE to keep the web page alive when the WebBrowserComponent is not visible.
By default, JUCE will replace the current page with a blank page - this can be handy to stop the browser using resources in the background when it's not actually being used.
References withMember().
Use a specific user agent string when requesting web pages.
References withMember().
Options WebBrowserComponent::Options::withWinWebView2Options | ( | const WinWebView2 & | winWebView2Options | ) | const |
References withMember().
|
noexcept |
|
noexcept |
String WebBrowserComponent::Options::getUserAgent | ( | ) | const |
WinWebView2 WebBrowserComponent::Options::getWinWebView2BackendOptions | ( | ) | const |