mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-01 21:59:43 +02:00
v1.5.0: UI rework, multi-progress tracking, performance optimizations
This commit is contained in:
1 parent
db1439e08f
commit
d227d57545
38 files changed
+2801
-833
No files matched your search
@@ -90,6 +90,28 @@ import Gobackend // Import Go framework
|
||||
let response = GobackendGetDownloadProgress()
|
||||
return response
|
||||
|
||||
case "getAllDownloadProgress":
|
||||
let response = GobackendGetAllDownloadProgress()
|
||||
return response
|
||||
|
||||
case "initItemProgress":
|
||||
let args = call.arguments as! [String: Any]
|
||||
let itemId = args["item_id"] as! String
|
||||
GobackendInitItemProgress(itemId)
|
||||
return nil
|
||||
|
||||
case "finishItemProgress":
|
||||
let args = call.arguments as! [String: Any]
|
||||
let itemId = args["item_id"] as! String
|
||||
GobackendFinishItemProgress(itemId)
|
||||
return nil
|
||||
|
||||
case "clearItemProgress":
|
||||
let args = call.arguments as! [String: Any]
|
||||
let itemId = args["item_id"] as! String
|
||||
GobackendClearItemProgress(itemId)
|
||||
return nil
|
||||
|
||||
case "setDownloadDirectory":
|
||||
let args = call.arguments as! [String: Any]
|
||||
let path = args["path"] as! String
|
||||
@@ -145,6 +167,10 @@ import Gobackend // Import Go framework
|
||||
if let error = error { throw error }
|
||||
return response
|
||||
|
||||
case "cleanupConnections":
|
||||
GobackendCleanupConnections()
|
||||
return nil
|
||||
|
||||
default:
|
||||
throw NSError(
|
||||
domain: "SpotiFLAC",
|
||||
|
||||
Reference in new issue
Block a user