FirebaseStorage Framework Reference

FIRStorageMetadata

@interfaceFIRStorageMetadata:NSObject

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 Storage reference to the object in question. Full documentation can be found at the GCS Objects#resource docs.

  • The name of the bucket containing this object.

    Declaration

    Objective-C

    @property(nonatomic,copy,readonly)NSString*_Nonnullbucket;
  • Cache-Control directive for the object data.

    Declaration

    Objective-C

    @property(nonatomic,copy)NSString*_NullablecacheControl;
  • Content-Disposition of the object data.

    Declaration

    Objective-C

    @property(nonatomic,copy)NSString*_NullablecontentDisposition;
  • Content-Encoding of the object data.

    Declaration

    Objective-C

    @property(nonatomic,copy)NSString*_NullablecontentEncoding;
  • Content-Language of the object data.

    Declaration

    Objective-C

    @property(nonatomic,copy)NSString*_NullablecontentLanguage;
  • Content-Type of the object data.

    Declaration

    Objective-C

    @property(nonatomic,copy)NSString*_NullablecontentType;
  • MD5 hash of the data; encoded using base64.

    Declaration

    Objective-C

    @property(nonatomic,copy,readonly)NSString*_Nullablemd5Hash;
  • The content generation of this object. Used for object versioning.

    Declaration

    Objective-C

    @property(nonatomic,readonly)int64_tgeneration;
  • User-provided metadata, in key/value pairs.

    Declaration

    Objective-C

    @property(nonatomic,copy)NSDictionary<NSString*,NSString*>*_NullablecustomMetadata;
  • 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.

    Declaration

    Objective-C

    @property(nonatomic,readonly)int64_tmetageneration;
  • The name of this object, in gs://bucket/path/to/object.txt, this is object.txt.

    Declaration

    Objective-C

    @property(nonatomic,copy,readonly)NSString*_Nullablename;
  • The full path of this object, in gs://bucket/path/to/object.txt, this is path/to/object.txt.

    Declaration

    Objective-C

    @property(nonatomic,copy,readonly)NSString*_Nullablepath;
  • Content-Length of the data in bytes.

    Declaration

    Objective-C

    @property(nonatomic,readonly)int64_tsize;
  • The creation time of the object in RFC 3339 format.

    Declaration

    Objective-C

    @property(nonatomic,copy,readonly)NSDate*_NullabletimeCreated;
  • The modification time of the object metadata in RFC 3339 format.

    Declaration

    Objective-C

    @property(nonatomic,copy,readonly)NSDate*_Nullableupdated;
  • Never used API

    Declaration

    Objective-C

    @property(nonatomic,strong,readonly)SWIFT_DEPRECATEDFIRStorageReference*storageReference;
  • Creates a Dictionary from the contents of the metadata.

    Declaration

    Objective-C

    -(NSDictionary<NSString*,NSObject*>*_Nonnull)dictionaryRepresentation;

    Return Value

    A Dictionary that represents the contents of the metadata.

  • Determines if the current metadata represents a “file”.

    Declaration

    Objective-C

    @property(nonatomic,readonly)BOOLisFile;
  • Determines if the current metadata represents a “folder”.

    Declaration

    Objective-C

    @property(nonatomic,readonly)BOOLisFolder;
  • Undocumented

    Declaration

    Objective-C

    -(nonnullinstancetype)init;
  • Creates an instance of StorageMetadata from the contents of a dictionary.

    Declaration

    Objective-C

    -(nonnullinstancetype)initWithDictionary:(NSDictionary<NSString*,NSObject*>*_Nonnull)dictionary;

    Return Value

    An instance of StorageMetadata that represents the contents of a dictionary.

  • Undocumented

    Declaration

    Objective-C

    -(id_Nonnull)copySWIFT_WARN_UNUSED_RESULT;
  • Undocumented

    Declaration

    Objective-C

    -(BOOL)isEqual:(id_Nullable)objectSWIFT_WARN_UNUSED_RESULT;
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic,readonly)NSUIntegerhash
  • Undocumented

    Declaration

    Objective-C

    @property(nonatomic,readonly,copy)NSString*_Nonnulldescription
close