LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
FIRStorageMetadata Class Reference

#import <FIRStorageMetadata.h>

Inheritance diagram for FIRStorageMetadata:

Instance Methods

(nullable instancetype) - initWithDictionary:
 
(NSDictionary *) - dictionaryRepresentation
 
(nullable NSURL *) - downloadURL
 

Properties

NSString * bucket
 
NSString * cacheControl
 
NSString * contentDisposition
 
NSString * contentEncoding
 
NSString * contentLanguage
 
NSString * contentType
 
int64_t generation
 
NSDictionary< NSString *, NSString * > * customMetadata
 
int64_t metageneration
 
NSString * name
 
NSString * path
 
int64_t size
 
NSDate * timeCreated
 
NSDate * updated
 
FIRStorageReferencestorageReference
 
NSArray< NSURL * > * downloadURLs
 
BOOL file
 
BOOL folder
 

Detailed Description

Class which represents the metadata on an object in Firebase Storage. This metadata is returned on successful operations, and can be used to retrieve download URLs, content types, and a FIRStorage reference to the object in question. Full documentation can be found at the GCS Objects::resource docs.

See also
https://cloud.google.com/storage/docs/json_api/v1/objects#resource

Method Documentation

- (NSDictionary *) dictionaryRepresentation

Creates an NSDictionary from the contents of the metadata.

Returns
An NSDictionary that represents the contents of the metadata.
- (nullable NSURL *) downloadURL

Retrieves a download URL for the given object, or nil if none exist. Note that if there are many valid download tokens, this will always return the first valid token created.

- (nullable instancetype) initWithDictionary: (NSDictionary *)  NS_DESIGNATED_INITIALIZER

Creates an instanece of FIRStorageMetadata from the contents of a dictionary.

Returns
An instance of FIRStorageMetadata that represents the contents of a dictionary.

Property Documentation

- (NSString*) bucket
readnonatomiccopy

The name of the bucket containing this object.

- (NSString*) cacheControl
readwritenonatomiccopy

Cache-Control directive for the object data.

- (NSString*) contentDisposition
readwritenonatomiccopy

Content-Disposition of the object data.

- (NSString*) contentEncoding
readwritenonatomiccopy

Content-Encoding of the object data.

- (NSString*) contentLanguage
readwritenonatomiccopy

Content-Language of the object data.

- (NSString*) contentType
readwritenonatomiccopy

Content-Type of the object data.

- (NSDictionary<NSString *, NSString *>*) customMetadata
readwritenonatomiccopy

User-provided metadata, in key/value pairs.

- (NSArray<NSURL *>*) downloadURLs
readnonatomicstrong

An array containing all download URLs available for the object.

- (BOOL) file
readatomicassign

Determines if the current metadata represents a "file".

- (BOOL) folder
readatomicassign

Determines if the current metadata represents a "folder".

- (int64_t) generation
readatomicassign

The content generation of this object. Used for object versioning.

- (int64_t) metageneration
readatomicassign

The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.

- (NSString*) name
readnonatomiccopy

The name of this object, in gs://bucket/path/to/object.txt, this is object.txt.

- (NSString*) path
readnonatomiccopy

The full path of this object, in gs://bucket/path/to/object.txt, this is path/to/object.txt.

- (int64_t) size
readatomicassign

Content-Length of the data in bytes.

- (FIRStorageReference*) storageReference
readnonatomicstrong

A reference to the object in Firebase Storage.

- (NSDate*) timeCreated
readnonatomiccopy

The creation time of the object in RFC 3339 format.

- (NSDate*) updated
readnonatomiccopy

The modification time of the object metadata in RFC 3339 format.


The documentation for this class was generated from the following file: