Adding wol plugin
This commit is contained in:
18
wol/ios/Plugin/wolPlugin.swift
Normal file
18
wol/ios/Plugin/wolPlugin.swift
Normal 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)
|
||||
])
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user