FirebaseStorage Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
StorageTaskManagement
@objc(FIRStorageTaskManagement)
public protocol StorageTaskManagement : NSObjectProtocol
Defines task operations such as pause, resume, cancel, and enqueue for all tasks.
All tasks are required to implement enqueue, which begins the task, and may optionally
implement pause, resume, and cancel, which operate on the task to pause, resume, and cancel
operations.
-
Prepares a task and begins execution.
Declaration
Swift
@objc
func enqueue()
-
Pauses a task currently in progress.
Declaration
Swift
@objc
optional func pause()
-
Declaration
Swift
@objc
optional func cancel()
-
Declaration
Swift
@objc
optional func resume()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.
[null,null,["Last updated 2024-02-06 UTC."],[],[],null,["# FirebaseStorage Framework Reference\n\nStorageTaskManagement\n=====================\n\n @objc(FIRStorageTaskManagement)\n public protocol StorageTaskManagement : NSObjectProtocol\n\nDefines task operations such as pause, resume, cancel, and enqueue for all tasks.\n\nAll tasks are required to implement enqueue, which begins the task, and may optionally\nimplement pause, resume, and cancel, which operate on the task to pause, resume, and cancel\noperations.\n- `\n ``\n ``\n `\n\n ### [enqueue()](#/c:@M@FirebaseStorage@objc(pl)FIRStorageTaskManagement(im)enqueue)\n\n `\n ` \n Prepares a task and begins execution. \n\n #### Declaration\n\n Swift \n\n @objc\n func enqueue()\n\n- `\n ``\n ``\n `\n\n ### [pause()](#/c:@M@FirebaseStorage@objc(pl)FIRStorageTaskManagement(im)pause)\n\n `\n ` \n Pauses a task currently in progress. \n\n #### Declaration\n\n Swift \n\n @objc\n optional func pause()\n\n- `\n ``\n ``\n `\n\n ### [cancel()](#/c:@M@FirebaseStorage@objc(pl)FIRStorageTaskManagement(im)cancel)\n\n `\n ` \n Cancels a task. \n\n #### Declaration\n\n Swift \n\n @objc\n optional func cancel()\n\n- `\n ``\n ``\n `\n\n ### [resume()](#/c:@M@FirebaseStorage@objc(pl)FIRStorageTaskManagement(im)resume)\n\n `\n ` \n Resumes a paused task. \n\n #### Declaration\n\n Swift \n\n @objc\n optional func resume()"]]