Add iOS AbsDownloader and AbsFileSystem plugins

This commit is contained in:
advplyr
2022-05-13 15:18:21 -05:00
parent 8d5f33245f
commit f2b6331843
6 changed files with 170 additions and 7 deletions
+23
View File
@@ -0,0 +1,23 @@
//
// AbsDownloader.swift
// App
//
// Created by advplyr on 5/13/22.
//
import Foundation
import Capacitor
@objc(AbsDownloader)
public class AbsDownloader: CAPPlugin {
@objc func downloadLibraryItem(_ call: CAPPluginCall) {
let libraryItemId = call.getString("libraryItemId")
let episodeId = call.getString("episodeId")
let localFolderId = call.getString("localFolderId")
// TODO: Implement download
NSLog("Download library item \(libraryItemId ?? "N/A") episode \(episodeId ?? "") to folder \(localFolderId ?? "N/A")")
call.resolve()
}
}