capacitor-plugin-ios-webview-configurator
Advanced tools
Comparing version 0.1.1 to 0.2.0
export declare function setBackForwardNavigationGestures(enable: boolean): void; | ||
export declare function getBackForwardNavigationGesturesState(): Promise<boolean>; | ||
export declare function setWebviewBounce(enable: boolean): void; |
@@ -0,1 +1,10 @@ | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
import { Plugins } from "@capacitor/core"; | ||
@@ -9,2 +18,11 @@ const { WebviewConfiguratorPlugin } = Plugins; | ||
} | ||
export function getBackForwardNavigationGesturesState() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
return yield WebviewConfiguratorPlugin.getBackForwardNavigationGesturesState() | ||
.data; | ||
} | ||
catch (error) { } | ||
}); | ||
} | ||
export function setWebviewBounce(enable) { | ||
@@ -11,0 +29,0 @@ try { |
{ | ||
"name": "capacitor-plugin-ios-webview-configurator", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "\"\"", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
@@ -26,4 +26,8 @@ # capacitor-plugin-ios-webview-configurator | ||
### getBackForwardNavigationGesturesState() | ||
Get the back/forward swipe gestures state for iOS | ||
### setWebviewBounce() | ||
Set webview bounce for iOS |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
155996
87
33