FirebaseStorage

actual class FirebaseStorage(source)
expect class FirebaseStorage(source)

FirebaseStorage is a service that supports uploading and downloading large objects to Google Cloud Storage. Pass a custom instance of FirebaseApp to Firebase.storage which will initialize it with a storage location.

Otherwise, if you call Firebase.storage without a FirebaseApp, the FirebaseStorage instance will initialize with the default FirebaseApp obtainable from Firebase.storage. The storage location in this case will come the JSON configuration file downloaded from the web.

actual class FirebaseStorage(source)
actual class FirebaseStorage(source)
actual class FirebaseStorage(source)

Constructors

Link copied to clipboard
constructor(android: FirebaseStorage)
constructor(ios: FIRStorage)
constructor(js: FirebaseStorage)
constructor()

Properties

Link copied to clipboard
val FirebaseStorage.android: FirebaseStorage
Link copied to clipboard
val FirebaseStorage.ios: FIRStorage
Link copied to clipboard
val FirebaseStorage.js: FirebaseStorage
Link copied to clipboard

Returns the maximum time to retry operations other than upload and download if a failure occurs.

Link copied to clipboard

Returns the maximum time to retry an upload if a failure occurs.

Link copied to clipboard

Creates a new StorageReference initialized at the root Firebase Storage location.

Functions

Link copied to clipboard
actual fun reference(location: String): StorageReference
expect fun reference(location: String): StorageReference

Creates a new StorageReference initialized with a child Firebase Storage location.

actual fun reference(location: String): StorageReference
actual fun reference(location: String): StorageReference
actual fun reference(location: String): StorageReference
Link copied to clipboard
actual fun setMaxOperationRetryTime(maxOperationRetryTime: Duration)
expect fun setMaxOperationRetryTime(maxOperationRetryTime: Duration)

Sets the maximum time to retry operations other than upload and download if a failure occurs.

actual fun setMaxOperationRetryTime(maxOperationRetryTime: Duration)
actual fun setMaxOperationRetryTime(maxOperationRetryTime: Duration)
actual fun setMaxOperationRetryTime(maxOperationRetryTime: Duration)
Link copied to clipboard
fun FirebaseStorage.setMaxOperationRetryTimeMillis(maxOperationRetryTimeMillis: Long)
Link copied to clipboard
actual fun setMaxUploadRetryTime(maxUploadRetryTime: Duration)
expect fun setMaxUploadRetryTime(maxUploadRetryTime: Duration)

Sets the maximum time to retry an upload if a failure occurs.

actual fun setMaxUploadRetryTime(maxUploadRetryTime: Duration)
actual fun setMaxUploadRetryTime(maxUploadRetryTime: Duration)
actual fun setMaxUploadRetryTime(maxUploadRetryTime: Duration)
Link copied to clipboard
fun FirebaseStorage.setMaxUploadRetryTimeMillis(maxUploadRetryTimeMillis: Long)
Link copied to clipboard
actual fun useEmulator(host: String, port: Int)
expect fun useEmulator(host: String, port: Int)

Modifies this FirebaseStorage instance to communicate with the Storage emulator.

actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)