Prototype response to app

This commit is contained in:
ronaldheft
2022-07-16 20:25:04 -04:00
parent 175e642081
commit b7725c455b
3 changed files with 41 additions and 13 deletions
+7 -1
View File
@@ -75,7 +75,13 @@ public class AbsDatabase: CAPPlugin {
}
@objc func getLocalLibraryItems(_ call: CAPPluginCall) {
call.resolve([ "value": [] ])
do {
let items = Database.shared.getLocalLibraryItems()
call.resolve([ "value": try items.asDictionaryArray() ])
} catch(let exception) {
NSLog("error while readling local library items")
debugPrint(exception)
}
}
@objc func getLocalLibraryItem(_ call: CAPPluginCall) {
call.resolve()