Implemented missing methods

This commit is contained in:
Rasmus Krämer
2022-04-11 18:50:25 +02:00
parent 6de4626239
commit 782f11ff28
3 changed files with 31 additions and 14 deletions
+5
View File
@@ -11,5 +11,10 @@
CAP_PLUGIN(AbsDatabase, "AbsDatabase",
CAP_PLUGIN_METHOD(setCurrentServerConnectionConfig, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(getDeviceData, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(getLocalLibraryItems, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(getLocalLibraryItem, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(getLocalLibraryItemByLLId, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(getLocalLibraryItemsInFolder, CAPPluginReturnPromise);
)
+13 -1
View File
@@ -68,5 +68,17 @@ public class AbsDatabase: CAPPlugin {
}
}
// We have to send a empty array or the client will break
@objc func getLocalLibraryItems(_ call: CAPPluginCall) {
call.resolve([ "value": [] ])
}
@objc func getLocalLibraryItem(_ call: CAPPluginCall) {
call.resolve([ "value": [] ])
}
@objc func getLocalLibraryItemByLLId(_ call: CAPPluginCall) {
call.resolve([ "value": [] ])
}
@objc func getLocalLibraryItemsInFolder(_ call: CAPPluginCall) {
call.resolve([ "value": [] ])
}
}