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 *index
Declared In
TTAttachmentDescriptor.h
isDownloaded
Boolean value to indicate whether attachment is downloaded and stored locally.
@property (nullable, nonatomic, retain) NSNumber *isDownloaded
Declared In
TTAttachmentDescriptor.h
localPath
If attachment was downloaded, this property contains its path on the device.
@property (nullable, nonatomic, retain) NSString *localPath
Declared In
TTAttachmentDescriptor.h
mimeType
Attachment MIME type.
@property (nonnull, nonatomic, retain) NSString *mimeType
Discussion
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 *size
Declared In
TTAttachmentDescriptor.h
type
Attachment type.
@property (nonnull, nonatomic, retain) NSNumber *type
Declared In
TTAttachmentDescriptor.h