java.lang.Object |
↳ |
com.google.firebase.storage.StorageMetadata |
Class Overview
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.
Summary
Nested Classes |
class |
StorageMetadata.Builder |
Creates a StorageMetadata object. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
StorageMetadata
()
Public Methods
public
String
getBucket
()
public
String
getCacheControl
()
public
String
getContentDisposition
()
public
String
getContentEncoding
()
public
String
getContentLanguage
()
public
String
getContentType
()
public
long
getCreationTimeMillis
()
public
String
getCustomMetadata
(String key)
Returns custom metadata for a StorageReference
Parameters |
key |
String :
The key for which the metadata should be returned |
Returns |
String |
the metadata stored in the object the given key.
|
public
Set<String>
getCustomMetadataKeys
()
Returns |
Set<String> |
the keys for custom metadata.
|
public
Uri
getDownloadUrl
()
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.
Returns |
Uri |
The Uri representing the download URL. You can feed this URL into a
URL and download the object via openStream() .
|
public
List<Uri>
getDownloadUrls
()
Returns |
List<Uri> |
all unguessable Urls that can be used to download the StorageReference
|
public
String
getGeneration
()
public
String
getMd5Hash
()
public
String
getMetadataGeneration
()
Returns |
String |
a version String indicating the version of this StorageMetadata
|
public
long
getSizeBytes
()
public
long
getUpdatedTimeMillis
()