| java.lang.Object | |
| ↳ | com.google.firebase.storage.StorageMetadata |
Metadata for a StorageReference.
Metadata stores default attributes such as size and content type.
You may also store custom metadata key value pairs.
Metadata values may be used to authorize operations using declarative validation rules.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| StorageMetadata.Builder | Creates a StorageMetadata object. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
StorageMetadata object to hold metadata for a StorageReference
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns custom metadata for a
StorageReference | |||||||||||
Returns a long lived download URL with a revokable token.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns custom metadata for a StorageReference
| key | The key for which the metadata should be returned |
|---|
Returns a long lived download URL with a revokable token. This can be used to share the file with others, but can be revoked by a developer in the Firebase Console if desired.
Uri representing the download URL. You can feed this URL into a
URL and download the object via openStream().
StorageReference
StorageReference
StorageMetadata
StorageReference for which this metadata belongs to.