| 1234567891011121314151617181920212223 |
- import Foundation
- import Capacitor
- /**
- * Please read the Capacitor iOS Plugin Development Guide
- * here: https://capacitorjs.com/docs/plugins/ios
- */
- @objc(UpiLauncherPlugin)
- public class UpiLauncherPlugin: CAPPlugin, CAPBridgedPlugin {
- public let identifier = "UpiLauncherPlugin"
- public let jsName = "UpiLauncher"
- public let pluginMethods: [CAPPluginMethod] = [
- CAPPluginMethod(name: "echo", returnType: CAPPluginReturnPromise)
- ]
- private let implementation = UpiLauncher()
- @objc func echo(_ call: CAPPluginCall) {
- let value = call.getString("value") ?? ""
- call.resolve([
- "value": implementation.echo(value)
- ])
- }
- }
|