Given the below: https://github.com/Uepaa-AG/p2pkit-cordova
I am not figuring out how I'd call onEnabled for example. Not using `ts' the example obviously works great.
But now that I am working with TypeScript, I can't seem to call the nested functions properly.
I have this:
cordova.plugins.p2pkit.enable("xyzzy", this.p2pkitCallback, function...
p2pkitCallback() {
onEnabled() {
console.log('p2pkit enbled');
cordova.plugins.p2pkit.enableProximityRanging()
cordova.plugins.p2pkit.startDiscovery('', cordova.plugins.p2pkit.HIGH_PERFORMANCE) // base64 encoded Data (bytes)=
}
onEnabled() is highlighted in red of course... How should I refactor the code?
Thanks!