Packagecom.myflashlab.air.extensions.firebase.storage
Classpublic class StorageMetadata
InheritanceStorageMetadata Inheritance Object

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.



Public Properties
 PropertyDefined By
  bucket : String
[read-only] the owning Google Cloud Storage bucket for the StorageReference
StorageMetadata
  cacheControl : String
[read-only] the Cache Control setting of the StorageReference
StorageMetadata
  contentDisposition : String
[read-only] the content disposition of the StorageReference
StorageMetadata
  contentEncoding : String
[read-only] the content encoding for the StorageReference
StorageMetadata
  contentLanguage : String
[read-only] the content language for the StorageReference
StorageMetadata
  contentType : String
[read-only] the content type of the StorageReference.
StorageMetadata
  creationTimeMillis : Number
[read-only] the time the StorageReference was created.
StorageMetadata
  customMetadata : Array
[read-only] Returns an Array ofcustom metadata keys and values for a StorageReference
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
  ref : StorageReference
[read-only]
StorageMetadata
  sizeBytes : Number
[read-only] the stored Size in bytes of the StorageReference object NOTE: There is a known bug on the iOS side which returns 0 for this property! We hope Firebase can solve this problem the soonest possible.
StorageMetadata
  updatedTimeMillis : Number
[read-only] the time the StorageReference was last updated.
StorageMetadata
Public Methods
 MethodDefined By
  
StorageMetadata($customMetadata:Array = null, $cacheControl:String = null, $contentDisposition:String = null, $contentEncoding:String = null, $contentLanguage:String = null, $contentType:String = null)
You may create a new instance of this class and pass it to the putBytes or putFile methods so the new file that you are uploading to the Firebase storage would contain these metadata information.
StorageMetadata
  
StorageMetadata
  
StorageMetadata
  
StorageMetadata
  
StorageMetadata
  
StorageMetadata
Property Detail
bucketproperty
bucket:String  [read-only]

the owning Google Cloud Storage bucket for the StorageReference


Implementation
    public function get bucket():String
cacheControlproperty 
cacheControl:String  [read-only]

the Cache Control setting of the StorageReference


Implementation
    public function get cacheControl():String
contentDispositionproperty 
contentDisposition:String  [read-only]

the content disposition of the StorageReference


Implementation
    public function get contentDisposition():String
contentEncodingproperty 
contentEncoding:String  [read-only]

the content encoding for the StorageReference


Implementation
    public function get contentEncoding():String
contentLanguageproperty 
contentLanguage:String  [read-only]

the content language for the StorageReference


Implementation
    public function get contentLanguage():String
contentTypeproperty 
contentType:String  [read-only]

the content type of the StorageReference.


Implementation
    public function get contentType():String
creationTimeMillisproperty 
creationTimeMillis:Number  [read-only]

the time the StorageReference was created.


Implementation
    public function get creationTimeMillis():Number
customMetadataproperty 
customMetadata:Array  [read-only]

Returns an Array ofcustom metadata keys and values for a StorageReference


Implementation
    public function get customMetadata():Array
generationproperty 
generation:String  [read-only]

a version String indicating what version of the StorageReference


Implementation
    public function get generation():String
md5Hashproperty 
md5Hash:String  [read-only]

The MD5Hash of the StorageReference object


Implementation
    public function get md5Hash():String
metadataGenerationproperty 
metadataGeneration:String  [read-only]

a version String indicating the version of this StorageMetadata


Implementation
    public function get metadataGeneration():String
nameproperty 
name:String  [read-only]

a simple name of the StorageReference object


Implementation
    public function get name():String
pathproperty 
path:String  [read-only]

the path of the StorageReference object


Implementation
    public function get path():String
refproperty 
ref:StorageReference  [read-only]


Implementation
    public function get ref():StorageReference
sizeBytesproperty 
sizeBytes:Number  [read-only]

the stored Size in bytes of the StorageReference object

NOTE: There is a known bug on the iOS side which returns 0 for this property! We hope Firebase can solve this problem the soonest possible.


Implementation
    public function get sizeBytes():Number
updatedTimeMillisproperty 
updatedTimeMillis:Number  [read-only]

the time the StorageReference was last updated.


Implementation
    public function get updatedTimeMillis():Number
Constructor Detail
StorageMetadata()Constructor
public function StorageMetadata($customMetadata:Array = null, $cacheControl:String = null, $contentDisposition:String = null, $contentEncoding:String = null, $contentLanguage:String = null, $contentType:String = null)

You may create a new instance of this class and pass it to the putBytes or putFile methods so the new file that you are uploading to the Firebase storage would contain these metadata information.

Parameters
$customMetadata:Array (default = null) — is an array containing objects in which each consist of a key/value.
		 [{key1:"value1"}, {key2:"value2"}]
		 
 
$cacheControl:String (default = null)
 
$contentDisposition:String (default = null)
 
$contentEncoding:String (default = null)
 
$contentLanguage:String (default = null)
 
$contentType:String (default = null)

See also

Method Detail
getCacheControl()method
public function getCacheControl():String

Returns
String — the Cache Control header for the {
getContentDisposition()method 
public function getContentDisposition():String

Returns
String — the content disposition for the {
getContentEncoding()method 
public function getContentEncoding():String

Returns
String — the content encoding for the {
getContentLanguage()method 
public function getContentLanguage():String

Returns
String — the content language for the {
getContentType()method 
public function getContentType():String

Returns
String — the Content Type of this associated {