mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 06:43:42 +00:00
feat(ios): add iOS 26+ continued processing and Live Activities (#1514)
This commit is contained in:
1 parent
cee5f3336e
commit
e47a20a1bd
18 files changed
+2983
-3
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import ActivityKit
|
||||
import Foundation
|
||||
|
||||
@available(iOS 16.2, *)
|
||||
struct GopeedDownloadAttributes: ActivityAttributes {
|
||||
|
||||
struct ContentState: Codable, Hashable {
|
||||
|
||||
// Real confirmed progress.
|
||||
var progress: Double
|
||||
|
||||
var downloaded: Int64
|
||||
var total: Int64
|
||||
var speed: Int64
|
||||
|
||||
var status: String
|
||||
|
||||
// Used by the self-moving estimated progress bar.
|
||||
var estimatedStart: Date
|
||||
var estimatedEnd: Date
|
||||
var usesEstimatedProgress: Bool
|
||||
}
|
||||
|
||||
// Static properties.
|
||||
var taskId: String
|
||||
var fileName: String
|
||||
var generation: String
|
||||
}
|
||||
Reference in new issue
Block a user