java.lang.Object | |
↳ | com.google.firebase.storage.FirebaseStorage |
FirebaseStorage is a service that supports uploading and downloading large objects to Google
Cloud Storage. Pass a custom instance of FirebaseApp
to
getInstance(FirebaseApp)
which will initialize it with a storage
location (bucket) specified via setStorageBucket(String)
.
getReference()
without a FirebaseApp, the
FirebaseStorage instance will initialize with the default FirebaseApp
obtainable from
getInstance()
. The storage location in this case will come the JSON
configuration file downloaded from the web.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The
FirebaseApp associated with this FirebaseStorage instance. | |||||||||||
Returns the
FirebaseStorage , initialized with the default FirebaseApp and a
custom Storage Bucket. | |||||||||||
Returns the
FirebaseStorage , initialized with the default FirebaseApp . | |||||||||||
Returns the
FirebaseStorage , initialized with a custom FirebaseApp | |||||||||||
Returns the
FirebaseStorage , initialized with a custom FirebaseApp and a custom
Storage Bucket. | |||||||||||
Returns the maximum time to retry a download if a failure occurs.
| |||||||||||
Returns the maximum time to retry operations other than upload and download if a
failure occurs.
| |||||||||||
Returns the maximum time to retry an upload if a failure occurs.
| |||||||||||
Creates a new
StorageReference initialized at the root Firebase Storage location. | |||||||||||
Creates a new
StorageReference initialized with a child Firebase Storage location. | |||||||||||
Creates a
StorageReference given a gs:// or https:// URL pointing to a Firebase
Storage location. | |||||||||||
Sets the maximum time to retry a download if a failure occurs.
| |||||||||||
Sets the maximum time to retry operations other than upload and download if a
failure occurs.
| |||||||||||
Sets the maximum time to retry an upload if a failure occurs.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The FirebaseApp
associated with this FirebaseStorage
instance.
Returns | |
---|---|
FirebaseApp |
Returns the FirebaseStorage
, initialized with the default FirebaseApp
and a
custom Storage Bucket.
Parameters | |
---|---|
url |
String :
The gs:// url to your Firebase Storage Bucket. |
Returns | |
---|---|
FirebaseStorage |
a FirebaseStorage instance.
|
Returns the FirebaseStorage
, initialized with the default FirebaseApp
.
Returns | |
---|---|
FirebaseStorage |
a FirebaseStorage instance.
|
Returns the FirebaseStorage
, initialized with a custom FirebaseApp
Parameters | |
---|---|
app |
FirebaseApp :
The custom FirebaseApp used for initialization. |
Returns | |
---|---|
FirebaseStorage |
a FirebaseStorage instance.
|
Returns the FirebaseStorage
, initialized with a custom FirebaseApp
and a custom
Storage Bucket.
Parameters | |
---|---|
app |
FirebaseApp :
The custom FirebaseApp used for initialization. |
url |
String :
The gs:// url to your Firebase Storage Bucket. |
Returns | |
---|---|
FirebaseStorage |
a FirebaseStorage instance.
|
Returns the maximum time to retry a download if a failure occurs.
Returns | |
---|---|
long |
maximum time in milliseconds. Defaults to 10 minutes (600,000 milliseconds). |
Returns the maximum time to retry operations other than upload and download if a failure occurs.
Returns | |
---|---|
long |
the maximum time in milliseconds. Defaults to 2 minutes (120,000 milliseconds). |
Returns the maximum time to retry an upload if a failure occurs.
Returns | |
---|---|
long |
the maximum time in milliseconds. Defaults to 10 minutes (600,000 milliseconds). |
Creates a new StorageReference
initialized at the root Firebase Storage location.
Returns | |
---|---|
StorageReference |
An instance of StorageReference .
|
Creates a new StorageReference
initialized with a child Firebase Storage location.
Parameters | |
---|---|
location |
String :
A relative path from the root to initialize the reference with, for instance
"path/to/object" |
Returns | |
---|---|
StorageReference |
An instance of StorageReference at the given child path.
|
Creates a StorageReference
given a gs:// or https:// URL pointing to a Firebase
Storage location.
Parameters | |
---|---|
fullUrl |
String :
A gs:// or http[s]:// URL used to initialize the reference.
For example, you can pass in a download URL retrieved from
getDownloadUrl()
or the uri retrieved from toString()
An error is thrown if fullUrl is not associated with the FirebaseApp
used to initialize this FirebaseStorage .
|
Returns | |
---|---|
StorageReference |
Sets the maximum time to retry a download if a failure occurs.
Parameters | |
---|---|
maxTransferRetryMillis |
long :
the maximum time in milliseconds. Defaults to 10 minutes
(600,000 milliseconds).
|
Sets the maximum time to retry operations other than upload and download if a failure occurs.
Parameters | |
---|---|
maxTransferRetryMillis |
long :
the maximum time in milliseconds. Defaults to 2 minutes
(120,000 milliseconds).
|
Sets the maximum time to retry an upload if a failure occurs.
Parameters | |
---|---|
maxTransferRetryMillis |
long :
the maximum time in milliseconds. Defaults to 10 minutes
(600,000 milliseconds).
|