interface ICoreWebView2ExperimentalSettings5
Note
This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.
Note
This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.
interface ICoreWebView2ExperimentalSettings5
: public IUnknown
This is an extension of the ICoreWebView2Settings Experimental interface for IsSwipeNavigationEnabled.
Summary
Members | Descriptions |
---|---|
get_IsSwipeNavigationEnabled | Swiping gesture navigation on touch screen includes: |
put_IsSwipeNavigationEnabled | Set the IsSwipeNavigationEnabled property. |
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | N/A |
WebView2 Win32 Prerelease | 1.0.902 |
Members
get_IsSwipeNavigationEnabled
Swiping gesture navigation on touch screen includes:
public HRESULT get_IsSwipeNavigationEnabled(BOOL * enabled)
Swipe left/right (swipe horizontally) to navigate to previous/next page in navigation history.
Pull to refresh (swipe vertically) the current page. (This feature is currently disabled by default in the browser, to enable in WebView2, use
put_AdditionalBrowserArguments
api with "--pull-to-refresh" switch). TheIsSwipeNavigationEnabled
property enables or disables the ability of the end user to use swiping gesture on touch input enabled devices to navigate in WebView2. It defaults toTRUE
. When set toFALSE
, the end user cannot swipe to navigate or pull to refresh. This API only affects the overscrolling navigation functionality and has no effect on the scrolling interaction used to explore the web content shown in WebView2.
wil::com_ptr<ICoreWebView2ExperimentalSettings5> experimentalSettings5;
experimentalSettings5 = m_settings.try_query<ICoreWebView2ExperimentalSettings5>();
CHECK_FEATURE_RETURN(experimentalSettings5);
BOOL swipeNavigationEnabled;
CHECK_FAILURE(
experimentalSettings5->get_IsSwipeNavigationEnabled(&swipeNavigationEnabled));
if (swipeNavigationEnabled)
{
CHECK_FAILURE(experimentalSettings5->put_IsSwipeNavigationEnabled(FALSE));
MessageBox(
nullptr, L"Swipe to navigate is disabled after the next navigation.",
L"Settings change", MB_OK);
}
else
{
CHECK_FAILURE(experimentalSettings5->put_IsSwipeNavigationEnabled(TRUE));
MessageBox(
nullptr, L"Swipe to navigate is enabled after the next navigation.",
L"Settings change", MB_OK);
}
put_IsSwipeNavigationEnabled
Set the IsSwipeNavigationEnabled
property.
public HRESULT put_IsSwipeNavigationEnabled(BOOL enabled)
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示