StorageDownloadTask
@available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)
@objc(FIRStorageDownloadTask)
open class StorageDownloadTask : StorageObservableTask, StorageTaskManagement
StorageDownloadTask
implements resumable downloads from an object in Firebase Storage.
Downloads can be returned on completion with a completion handler, and can be monitored
by attaching observers, or controlled by calling pause()
, resume()
,
or cancel()
.
Downloads can currently be returned as Data
in memory, or as a URL
to a file on disk.
Downloads are performed on a background queue, and callbacks are raised on the developer
specified callbackQueue
in Storage, or the main queue if left unspecified.
-
Prepares a task and begins execution.
Declaration
Swift
open func enqueue()
-
Pauses a task currently in progress. Calling this on a paused task has no effect.
Declaration
Swift
open func pause()
-
Cancels a task.
Declaration
Swift
open func cancel()
-
Resumes a paused task. Calling this on a running task has no effect.
Declaration
Swift
open func resume()