Adding wol plugin

This commit is contained in:
Myx
2022-09-11 17:13:25 +02:00
parent 79cd222cce
commit bc4c19d5b5
52 changed files with 2044 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
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)
])
}
}