Classes
The following classes are available globally.
- 
                  
                  StorageReferencerepresents a reference to a Google Cloud Storage object. Developers can upload and download objects, as well as get/set object metadata, and delete an object at the path. See the Cloud docs for more details.DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageReference) open class StorageReference : NSObject
- 
                  
                  Firebase Storage is a service that supports uploading and downloading binary objects, such as images, videos, and other files to Google Cloud Storage. Instances of Storageare not thread-safe, but can be accessed from any thread.If you call Storage.storage(), the instance will initialize with the defaultFirebaseApp,FirebaseApp.app(), and the storage location will come from the providedGoogleService-Info.plist.If you provide a custom instance of FirebaseApp, the storage location will be specified via theFirebaseOptions.storageBucketproperty.DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorage) open class Storage : NSObject
- 
                  
                  StorageDownloadTaskimplements 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(), orcancel().Downloads can currently be returned as Datain memory, or as aURLto a file on disk.Downloads are performed on a background queue, and callbacks are raised on the developer specified callbackQueuein Storage, or the main queue if left unspecified.DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageDownloadTask) open class StorageDownloadTask : StorageObservableTask, StorageTaskManagement
- 
                  
                  Contains the prefixes and items returned by a StorageReference.list()call.DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageListResult) open class StorageListResult : NSObject
- 
                  
                  Class which represents the metadata on an object in Firebase Storage. This metadata is returned on successful operations, and can be used to retrieve download URLs, content types, and a Storage reference to the object in question. Full documentation can be found in the GCS documentation DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageMetadata) open class StorageMetadata : NSObject
- 
                  
                  An extended StorageTaskproviding observable semantics that can be used for responding to changes in task state.Observers produce a StorageHandle, which is used to keep track of and remove specific observers at a later date.DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageObservableTask) open class StorageObservableTask : StorageTask
- 
                  
                  A superclass to all Storage tasks, including StorageUploadTaskandStorageDownloadTask, to provide state transitions, event raising, and common storage for metadata and errors.Callbacks are always fired on the developer-specified callback queue. If no queue is specified, it defaults to the main queue. This class is thread-safe. DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageTask) open class StorageTask : NSObject
- 
                  
                  StorageTaskSnapshotrepresents an immutable view of a task. A snapshot contains a task, storage reference, metadata (if it exists), progress, and an error (if one occurred).DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageTaskSnapshot) open class StorageTaskSnapshot : NSObject
- 
                  
                  StorageUploadTaskimplements resumable uploads to a file in Firebase Storage.Uploads can be returned on completion with a completion callback, and can be monitored by attaching observers, or controlled by calling pause(),resume(), orcancel().Uploads can be initialized from Datain memory, or a URL to a file on disk.Uploads are performed on a background queue, and callbacks are raised on the developer specified callbackQueuein Storage, or the main queue if unspecified.DeclarationSwift @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *) @objc(FIRStorageUploadTask) open class StorageUploadTask: StorageObservableTask, StorageTaskManagement