| Package | com.myflashlab.air.extensions.firebase.storage |
| Class | public class StorageMetadata |
| Inheritance | StorageMetadata Object |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
getCacheControl():String | StorageMetadata | ||
getContentDisposition():String | StorageMetadata | ||
getContentEncoding():String | StorageMetadata | ||
getContentLanguage():String | StorageMetadata | ||
getContentType():String | 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 [read-only] the Cache Control setting of the StorageReference
public function get cacheControl():String| contentDisposition | property |
contentDisposition:String [read-only] the content disposition of the StorageReference
public function get contentDisposition():String| contentEncoding | property |
contentEncoding:String [read-only] the content encoding for the StorageReference
public function get contentEncoding():String| contentLanguage | property |
contentLanguage:String [read-only] the content language for the StorageReference
public function get contentLanguage():String| contentType | property |
contentType:String [read-only] the content type of the StorageReference.
public function get contentType():String| creationTimeMillis | property |
creationTimeMillis:Number [read-only] the time the StorageReference was created.
public function get creationTimeMillis():Number| customMetadata | property |
customMetadata:Array [read-only] Returns an Array ofcustom metadata keys and values for a StorageReference
public function get customMetadata():Array| 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| ref | property |
| sizeBytes | property |
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.
public function get sizeBytes():Number| updatedTimeMillis | property |
updatedTimeMillis:Number [read-only] the time the StorageReference was last updated.
public function get updatedTimeMillis():Number| 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.
$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
| getCacheControl | () | method |
public function getCacheControl():StringReturns
String — the Cache Control header for the { |
| getContentDisposition | () | method |
public function getContentDisposition():StringReturns
String — the content disposition for the { |
| getContentEncoding | () | method |
public function getContentEncoding():StringReturns
String — the content encoding for the { |
| getContentLanguage | () | method |
public function getContentLanguage():StringReturns
String — the content language for the { |
| getContentType | () | method |
public function getContentType():StringReturns
String — the Content Type of this associated { |