js-miniapp-sdk

Globals / WebviewManager

Class: WebviewManager

Class implementing the WebViewConfigProvider interface to manage WebView configurations.

Hierarchy

Implements

Index

Methods

Methods

allowBackForwardNavigationGestures

allowBackForwardNavigationGestures(shouldAllow: boolean): Promise<boolean>

Implementation of WebViewConfigProvider

Defined in js-miniapp-sdk/src/modules/webview-config-provider.ts:24

Allows or disallows back and forward navigation gestures in the WebView.

Parameters:

Name Type Description
shouldAllow boolean A boolean indicating whether the gestures should be allowed.

Returns: Promise<boolean>

A promise that resolves to a boolean indicating the success of the operation.