FIRStorageMetadata


@interface FIRStorageMetadata : NSObject <NSCopying>

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.

  • The name of the bucket containing this object.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (readonly, atomic) int64_t generation;
  • User-provided metadata, in key/value pairs.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSDictionary<NSString *, NSString *> *customMetadata;