Firebase.Storage.FirebaseStorage

FirebaseStorage is a service that supports uploading and downloading large objects to Google Cloud Storage.

Summary

FirebaseStorage is a service that supports uploading and downloading large objects to Google Cloud Storage. Pass a custom instance of Firebase.FirebaseApp to GetInstance which will initialize it with a storage location (bucket) specified via AppOptions.StorageBucket

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

Properties

App
The Firebase.FirebaseApp associated with this FirebaseStorage instance.
DefaultInstance
Returns the FirebaseStorage , initialized with the default Firebase.FirebaseApp
LogLevel
Sets or Gets how verbose Cloud Storage Logging will be.
MaxDownloadRetryTime
TimeSpan
Returns the maximum time to retry a download if a failure occurs.
MaxOperationRetryTime
TimeSpan
Sets the maximum time to retry operations other than upload and download if a failure occurs.
MaxUploadRetryTime
TimeSpan
Returns the maximum time to retry an upload if a failure occurs.
RootReference
Creates a new StorageReference initialized at the root Cloud Storage location.

Public static functions

GetInstance(FirebaseApp app, string url)
Returns the FirebaseStorage , initialized with a custom Firebase.FirebaseApp
GetInstance(string url)
Returns the FirebaseStorage , initialized with the default Firebase.FirebaseApp and a custom Storage Bucket

Public functions

GetReference(string location)
Creates a new StorageReference initialized with a child Cloud Storage location.
GetReferenceFromUrl(string fullUrl)
Creates a StorageReference given a gs:// or https:// URL pointing to a FirebaseStorage location.

Properties

App

FirebaseApp App

The Firebase.FirebaseApp associated with this FirebaseStorage instance.

DefaultInstance

static FirebaseStorage DefaultInstance

Returns the FirebaseStorage , initialized with the default Firebase.FirebaseApp

a FirebaseStorage instance.

LogLevel

LogLevel LogLevel

Sets or Gets how verbose Cloud Storage Logging will be.

To obtain more debug information, set this to LogLevel.Verbose

MaxDownloadRetryTime

TimeSpan MaxDownloadRetryTime

Returns the maximum time to retry a download if a failure occurs.

maximum time which defaults to 10 minutes (600,000 milliseconds).

MaxOperationRetryTime

TimeSpan MaxOperationRetryTime

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

MaxUploadRetryTime

TimeSpan MaxUploadRetryTime

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

Details
Returns
the maximum time which defaults to 10 minutes (600,000 milliseconds).

RootReference

StorageReference RootReference

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

Details
Returns
An instance of StorageReference

Public static functions

GetInstance

FirebaseStorage GetInstance(
  FirebaseApp app,
  string url
)

Returns the FirebaseStorage , initialized with a custom Firebase.FirebaseApp

Details
Parameters
app
The custom Firebase.FirebaseApp used for initialization.
url
The gs:// url to your Cloud Storage Bucket.
Returns
a FirebaseStorage instance.

GetInstance

FirebaseStorage GetInstance(
  string url
)

Returns the FirebaseStorage , initialized with the default Firebase.FirebaseApp and a custom Storage Bucket

Details
Parameters
url
The gs:// url to your Cloud Storage Bucket.
Returns
a FirebaseStorage instance.

Public functions

GetReference

StorageReference GetReference(
  string location
)

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

Details
Parameters
location
A relative path from the root to initialize the reference with, for instance "path/to/object"
Returns
An instance of StorageReference at the given child path.

GetReferenceFromUrl

StorageReference GetReferenceFromUrl(
  string fullUrl
)

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

Details
Parameters
fullUrl
A gs:// or http[s]:// URL used to initialize the reference. For example, you can pass in a download URL retrieved from StorageReference.GetDownloadUrlAsync or the uri retrieved from StorageReference.ToString() An error is thrown if fullUrl is not associated with the Firebase.FirebaseApp used to initialize this FirebaseStorage

Send feedback about...

Need help? Visit our support page.