StorageReference

A reference to an object or folder in Cloud Storage.

Properties

Link copied to clipboard

The underlying Firebase Android SDK object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val StorageReference.ios: FIRStorageReference

The underlying Firebase iOS SDK object.

Link copied to clipboard

The underlying Firebase JS SDK object.

The underlying Firebase JS SDK object.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun delete()

Deletes the object.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
suspend fun getData(maxDownloadSizeBytes: Long): Data

Downloads the object into memory, failing if it is larger than maxDownloadSizeBytes.

Link copied to clipboard
suspend fun getDownloadUrl(): String

The public download URL of the object.

Link copied to clipboard

The object's metadata.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
suspend fun list(maxResults: Int, pageToken: String? = null): ListResult

Lists up to maxResults items and prefixes, continuing from pageToken if given.

Link copied to clipboard
suspend fun listAll(): ListResult

Lists every item and prefix under this reference.

Link copied to clipboard
suspend fun putData(data: Data, metadata: FirebaseStorageMetadata? = null)

Uploads data and suspends until the upload completes.

Link copied to clipboard

Uploads data, reporting progress through the returned ProgressFlow, which can pause, resume and cancel it.

Link copied to clipboard
suspend fun putFile(file: File, metadata: FirebaseStorageMetadata? = null)

Uploads file and suspends until the upload completes.

Link copied to clipboard

Uploads file, reporting progress through the returned ProgressFlow, which can pause, resume and cancel it.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Updates the object's settable metadata.