TTAttachmentDescriptor Class Reference
| Inherits from | NSManagedObject |
|---|---|
| Declared in | TTAttachmentDescriptor.h |
Overview
TTAttachmentDescriptor describes an attachment added to a specific TTMessage.
Note: For supported attachment types, see TTAttachmentType, and for supported MIME types, see TTAttachmentDescriptor.mimeType.
index
Index of attachment in TTMessage’s attachmentDescriptors NSSet.
@property (nullable, nonatomic, retain) NSNumber *indexDeclared In
TTAttachmentDescriptor.h
isDownloaded
Boolean value to indicate whether attachment is downloaded and stored locally.
@property (nullable, nonatomic, retain) NSNumber *isDownloadedDeclared In
TTAttachmentDescriptor.h
localPath
If attachment was downloaded, this property contains its path on the device.
@property (nullable, nonatomic, retain) NSString *localPathDeclared In
TTAttachmentDescriptor.h
mimeType
Attachment MIME type.
@property (nonnull, nonatomic, retain) NSString *mimeTypeDiscussion
Note: Supported MIME types include image/jpeg, image/pjpeg, image/png, image/x-png, image/gif, image/bmp, audio/mp4, audio/wav, audio/x-wav, audio/mpeg, audio/x-m4a, audio/mp3, video/mp4, video/x-m4v, video/quicktime, application/pdf, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation
Declared In
TTAttachmentDescriptor.h
size
Size of attachment, in bytes.
@property (nullable, nonatomic, retain) NSNumber *sizeDeclared In
TTAttachmentDescriptor.h
type
Attachment type.
@property (nonnull, nonatomic, retain) NSNumber *typeDeclared In
TTAttachmentDescriptor.h