Loading...
Searching...
No Matches
WebBrowserComponent::Options::AppleWkWebView Class Reference

Options specific to the WkWebView backend used on Apple systems. More...

#include <juce_WebBrowserComponent.h>

Public Member Functions

AppleWkWebView withAllowAccessToEnclosingDirectory (bool x) const
 Specifies whether the WebView is allowed to access siblings of files specified with the file:// URL scheme.
 
AppleWkWebView withDisabledAcceptsFirstMouse () const
 If this options is specified, the underlying WebView will return NO from its acceptsFirstMouse method.
 
auto getAllowAccessToEnclosingDirectory () const
 
auto getAcceptsFirstMouse () const
 

Detailed Description

Options specific to the WkWebView backend used on Apple systems.

These options will be ignored on non-Apple platforms.

Member Function Documentation

◆ withAllowAccessToEnclosingDirectory()

AppleWkWebView WebBrowserComponent::Options::AppleWkWebView::withAllowAccessToEnclosingDirectory ( bool x) const
nodiscard

Specifies whether the WebView is allowed to access siblings of files specified with the file:// URL scheme.

Allowing this is a potential security vulnerability if you don't have full control over the file that you are opening.

References withMember(), and x.

◆ withDisabledAcceptsFirstMouse()

AppleWkWebView WebBrowserComponent::Options::AppleWkWebView::withDisabledAcceptsFirstMouse ( ) const
nodiscard

If this options is specified, the underlying WebView will return NO from its acceptsFirstMouse method.

This disables the click-through behaviour, meaning that clicking a previously unfocused application window only makes the window focused, but will not pass on the click to whichever control inside the WebView is under the mouse.

References withMember().

◆ getAllowAccessToEnclosingDirectory()

auto WebBrowserComponent::Options::AppleWkWebView::getAllowAccessToEnclosingDirectory ( ) const

◆ getAcceptsFirstMouse()

auto WebBrowserComponent::Options::AppleWkWebView::getAcceptsFirstMouse ( ) const

The documentation for this class was generated from the following file:
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram