FirebaseStorage

actual class FirebaseStorage(source)
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)

Constructors

Link copied to clipboard
constructor(android: FirebaseStorage)
constructor(ios: <Error class: unknown class>)
constructor(js: FirebaseStorage)
constructor(android: FirebaseStorage)

Properties

Link copied to clipboard
val FirebaseStorage.android: FirebaseStorage
val FirebaseStorage.android: FirebaseStorage
Link copied to clipboard
val FirebaseStorage.ios: <Error class: unknown class>
Link copied to clipboard
val FirebaseStorage.js: FirebaseStorage
Link copied to clipboard
actual val maxOperationRetryTime: <Error class: unknown class>
actual val maxOperationRetryTime: <Error class: unknown class>
expect val maxOperationRetryTime: <Error class: unknown class>

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

actual val maxOperationRetryTime: <Error class: unknown class>
actual val maxOperationRetryTime: <Error class: unknown class>
Link copied to clipboard
actual val maxUploadRetryTime: <Error class: unknown class>
actual val maxUploadRetryTime: <Error class: unknown class>
expect val maxUploadRetryTime: <Error class: unknown class>

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

actual val maxUploadRetryTime: <Error class: unknown class>
actual val maxUploadRetryTime: <Error class: unknown class>
Link copied to clipboard

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

Functions

Link copied to clipboard

Creates a StorageReference given a gs:// or https:// URL pointing to a Firebase Storage location.

Link copied to clipboard
actual fun reference(location: String): StorageReference
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
Link copied to clipboard
actual fun setMaxOperationRetryTime(maxOperationRetryTime: Duration)
actual fun setMaxOperationRetryTime(maxOperationRetryTime: <Error class: unknown class>)
expect fun setMaxOperationRetryTime(maxOperationRetryTime: <Error class: unknown class>)

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

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

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

actual fun setMaxUploadRetryTime(maxUploadRetryTime: <Error class: unknown class>)
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)
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)