dop-sdk
Version:
Mini App SDK for JavaScript by VTB
23 lines (22 loc) • 1.01 kB
TypeScript
/**
* Interface representing a provider for WebView configuration.
*/
export interface WebViewConfigProvider {
/**
* Allows or disallows back and forward navigation gestures in the WebView.
* @param shouldAllow - A boolean indicating whether the gestures should be allowed.
* @returns A promise that resolves to a boolean indicating the success of the operation.
*/
allowBackForwardNavigationGestures(shouldAllow: boolean): Promise<boolean>;
}
/**
* Class implementing the WebViewConfigProvider interface to manage WebView configurations.
*/
export declare class WebviewManager implements WebViewConfigProvider {
/**
* Allows or disallows back and forward navigation gestures in the WebView.
* @param shouldAllow - A boolean indicating whether the gestures should be allowed.
* @returns A promise that resolves to a boolean indicating the success of the operation.
*/
allowBackForwardNavigationGestures(shouldAllow: boolean): Promise<boolean>;
}