Package | com.distriqt.extension.firebase.storage |
Class | public class StorageMetadata |
Inheritance | StorageMetadata ![]() |
Property | Defined By | ||
---|---|---|---|
bucket : String [read-only]
the owning Google Cloud Storage bucket for the StorageReference
| StorageMetadata | ||
cacheControl : String
the Cache Control for the StorageReference
| StorageMetadata | ||
contentDisposition : String
the content disposition for the StorageReference
| StorageMetadata | ||
contentEncoding : String
the content encoding for the StorageReference
| StorageMetadata | ||
contentLanguage : String
the content language for the StorageReference
| StorageMetadata | ||
contentType : String
the content Type of this associated StorageReference
| StorageMetadata | ||
creationTime : Number [read-only]
the time the StorageReference was created
| StorageMetadata | ||
downloadUrl : String Deprecated: Use getDownloadUrl() from StorageReference instead [read-only]
Returns a long lived download URL with a revokable token. | StorageMetadata | ||
generation : String [read-only]
a version String indicating what version of the StorageReference
| StorageMetadata | ||
md5Hash : String [read-only]
the MD5Hash of the StorageReference object
| StorageMetadata | ||
metadataGeneration : String [read-only]
a version String indicating the version of this StorageMetadata
| StorageMetadata | ||
name : String [read-only]
a simple name of the StorageReference object
| StorageMetadata | ||
path : String [read-only]
the path of the StorageReference object
| StorageMetadata | ||
size : Number [read-only]
the stored Size in bytes of the StorageReference object
| StorageMetadata | ||
updatedTime : Number [read-only]
the time the StorageReference was last updated
| StorageMetadata |
Method | Defined By | ||
---|---|---|---|
Constructor
| StorageMetadata | ||
fromObject(data:Object):StorageMetadata [static] | StorageMetadata | ||
getCustomMetadata(key:String):String
Returns custom metadata for a StorageReference
| StorageMetadata | ||
getCustomMetadataKeys():Array | StorageMetadata | ||
setCustomMetadata(key:String, value:String):void
Sets custom metadata
| StorageMetadata |
bucket | property |
bucket:String
[read-only] the owning Google Cloud Storage bucket for the StorageReference
public function get bucket():String
cacheControl | property |
cacheControl:String
the Cache Control for the StorageReference
public function get cacheControl():String
public function set cacheControl(value:String):void
contentDisposition | property |
contentDisposition:String
the content disposition for the StorageReference
public function get contentDisposition():String
public function set contentDisposition(value:String):void
contentEncoding | property |
contentEncoding:String
the content encoding for the StorageReference
public function get contentEncoding():String
public function set contentEncoding(value:String):void
contentLanguage | property |
contentLanguage:String
the content language for the StorageReference
public function get contentLanguage():String
public function set contentLanguage(value:String):void
contentType | property |
contentType:String
the content Type of this associated StorageReference
public function get contentType():String
public function set contentType(value:String):void
creationTime | property |
creationTime:Number
[read-only] the time the StorageReference was created
public function get creationTime():Number
downloadUrl | property |
downloadUrl:String
[read-only] 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.
public function get downloadUrl():String
generation | property |
generation:String
[read-only] a version String indicating what version of the StorageReference
public function get generation():String
md5Hash | property |
md5Hash:String
[read-only] the MD5Hash of the StorageReference object
public function get md5Hash():String
metadataGeneration | property |
metadataGeneration:String
[read-only] a version String indicating the version of this StorageMetadata
public function get metadataGeneration():String
name | property |
name:String
[read-only] a simple name of the StorageReference object
public function get name():String
path | property |
path:String
[read-only] the path of the StorageReference object
public function get path():String
size | property |
size:Number
[read-only] the stored Size in bytes of the StorageReference object
public function get size():Number
updatedTime | property |
updatedTime:Number
[read-only] the time the StorageReference was last updated
public function get updatedTime():Number
StorageMetadata | () | Constructor |
public function StorageMetadata()
Constructor
fromObject | () | method |
public static function fromObject(data:Object):StorageMetadata
Parameters
data:Object |
StorageMetadata |
getCustomMetadata | () | method |
public function getCustomMetadata(key:String):String
Returns custom metadata for a StorageReference
Parameters
key:String — The key for which the metadata should be returned
|
String — the metadata stored in the object the given key or null if it doesn't exist
|
getCustomMetadataKeys | () | method |
public function getCustomMetadataKeys():Array
Returns
Array — the keys for custom metadata
|
setCustomMetadata | () | method |
public function setCustomMetadata(key:String, value:String):void
Sets custom metadata
Parameters
key:String — the key of the new value
| |
value:String — the value to set
|