Files
Go-To-bed/wol/ios/Plugin/wolPlugin.swift
2022-09-11 17:13:25 +02:00

19 lines
430 B
Swift

import Foundation
import Capacitor
/**
* Please read the Capacitor iOS Plugin Development Guide
* here: https://capacitorjs.com/docs/plugins/ios
*/
@objc(wolPlugin)
public class wolPlugin: CAPPlugin {
private let implementation = wol()
@objc func echo(_ call: CAPPluginCall) {
let value = call.getString("value") ?? ""
call.resolve([
"value": implementation.echo(value)
])
}
}