@hanwha-ss1/plugin 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ import Foundation
2
+ import Capacitor
3
+
4
+ public class EdgeSwipePlugin: CAPPlugin {
5
+ private let implementation = EdgeSwipeService()
6
+
7
+ @objc public func onEdgeSwipe(_ call: CAPPluginCall, _bridge: CAPBridgeProtocol) {
8
+ let isOn = call.getBool("on") ?? false
9
+
10
+ DispatchQueue.main.async {
11
+ if let webView = _bridge.webView {
12
+ webView.allowsBackForwardNavigationGestures = isOn
13
+ } else {
14
+ call.reject("WebView is not available")
15
+ }
16
+ }
17
+ }
18
+ }
19
+
@@ -0,0 +1,10 @@
1
+ import Foundation
2
+ import UIKit
3
+
4
+
5
+ @objc public class EdgeSwipeService: NSObject {
6
+ @objc public func echo(_ value: String) -> String {
7
+ print(value)
8
+ return value
9
+ }
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanwha-ss1/plugin",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",