FirebaseStorageMetadata

data class FirebaseStorageMetadata(var md5Hash: String? = null, var cacheControl: String? = null, var contentDisposition: String? = null, var contentEncoding: String? = null, var contentLanguage: String? = null, var contentType: String? = null, var customMetadata: MutableMap<String, String> = mutableMapOf())(source)

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.

Constructors

Link copied to clipboard
constructor(md5Hash: String? = null, cacheControl: String? = null, contentDisposition: String? = null, contentEncoding: String? = null, contentLanguage: String? = null, contentType: String? = null, customMetadata: MutableMap<String, String> = mutableMapOf())

Properties

Link copied to clipboard

Returns the size of the StorageReference object in bytes.

Link copied to clipboard

Returns the content disposition of the StorageReference

Link copied to clipboard

Returns the content encoding for the StorageReference

Link copied to clipboard

Returns the content language for the StorageReference

Link copied to clipboard

Returns the Content Type of this associated StorageReference

Link copied to clipboard

Returns custom metadata for a StorageReference

Link copied to clipboard

Returns the path of the StorageReference object.

Functions

Link copied to clipboard
fun setCustomMetadata(key: String, value: String?)

Sets custom metadata