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
|
static FirebaseStorage
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)
|
|
Url()
|
string
|
Properties
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
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 |
|
||||
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 |
|
||
Returns |
a FirebaseStorage instance.
|
Public functions
GetReference
StorageReference GetReference( string location )
Creates a new StorageReference initialized with a child Cloud Storage location.
Details | |||
---|---|---|---|
Parameters |
|
||
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 |
|