Couchbase Lite
Objective-C API for iOS and Mac OS
Properties | List of all members
CBLAttachment Class Reference

A binary attachment to a document revision. More...

#import <CBLAttachment.h>

Inheritance diagram for CBLAttachment:

Properties

CBLRevisionrevision
 The owning document revision. More...
 
CBLDocumentdocument
 The owning document. More...
 
NSString * name
 The filename. More...
 
NSString * contentType
 The MIME type of the contents. More...
 
UInt64 length
 The length in bytes of the contents. More...
 
NSDictionary * metadata
 The CouchbaseLite metadata about the attachment, that lives in the document. More...
 
NSData * content
 The data of the attachment. More...
 
NSURL * contentURL
 The URL of the file containing the contents. More...
 

Detailed Description

A binary attachment to a document revision.

Existing attachments can be gotten from -[CBLRevision attachmentNamed:]. New attachments can be created by calling the -setAttachment:... methods of CBLNewRevision or CBLModel.

Property Documentation

- (CBLRevision*) revision
readatomicretain

The owning document revision.

- (CBLDocument*) document
readatomicassign

The owning document.

- (NSString*) name
readatomiccopy

The filename.

- (NSString*) contentType
readatomicassign

The MIME type of the contents.

- (UInt64) length
readatomicassign

The length in bytes of the contents.

- (NSDictionary*) metadata
readatomicassign

The CouchbaseLite metadata about the attachment, that lives in the document.

- (NSData*) content
readatomicassign

The data of the attachment.

- (NSURL*) contentURL
readatomicassign

The URL of the file containing the contents.

(This is always a 'file:' URL.) This file must be treated as read-only! DO NOT MODIFY OR DELETE IT.


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