HyphenateSDK  3.3.0
Instance Methods | Properties | List of all members
EMImageMessageBody Class Reference

#import <EMImageMessageBody.h>

Inheritance diagram for EMImageMessageBody:
EMFileMessageBody EMMessageBody

Instance Methods

(instancetype) - initWithData:thumbnailData:
 
(CGFloat compressRatio) - __deprecated_msg
 
- Instance Methods inherited from EMFileMessageBody
(instancetype) - initWithLocalPath:displayName:
 
(instancetype) - initWithData:displayName:
 

Properties

CGSize size
 
CGFloat compressionRatio
 
NSString * thumbnailDisplayName
 
NSString * thumbnailLocalPath
 
NSString * thumbnailRemotePath
 
NSString * thumbnailSecretKey
 
CGSize thumbnailSize
 
long long thumbnailFileLength
 
EMDownloadStatus thumbnailDownloadStatus
 
- Properties inherited from EMFileMessageBody
NSString * displayName
 
NSString * localPath
 
NSString * remotePath
 
NSString * secretKey
 
long long fileLength
 
EMDownloadStatus downloadStatus
 
- Properties inherited from EMMessageBody
EMMessageBodyType type
 

Detailed Description

EMImageMessageBody.h Image message body

Author
Hyphenate
Version
3.00

Image message body

Method Documentation

- (CGFloat compressRatio) __deprecated_msg ("Use - compressionRatio") 

Image compression ratio. 1.0 without compression, default value is 0.6. SDK uses the default value if the given value is less than zero.

- (instancetype) initWithData: (NSData *)  aData
thumbnailData: (NSData *)  aThumbnailData 

Initialize an image message body instance

Parameters
aDataThe data of image
aThumbnailDataThe data of thumbnail
Returns
An image message body instance

Property Documentation

- (CGFloat) compressionRatio
readwritenonatomicassign

Image compression ratio. 1.0 without compression, default value is 0.6. SDK uses the default value if the given value is less than zero.

- (CGSize) size
readwritenonatomicassign

Size of image attachment

- (NSString*) thumbnailDisplayName
readwritenonatomiccopy

Display name of thumbnail

- (EMDownloadStatus) thumbnailDownloadStatus
readwritenonatomicassign

Download status of a thumbnail

- (long long) thumbnailFileLength
readwritenonatomicassign

File length of a thumbnail, in bytes

- (NSString*) thumbnailLocalPath
readwritenonatomiccopy

Local path of thumbnail

- (NSString*) thumbnailRemotePath
readwritenonatomiccopy

Server path of thumbnail

- (NSString*) thumbnailSecretKey
readwritenonatomiccopy

Secret key for downloading a thumbnail image

- (CGSize) thumbnailSize
readwritenonatomicassign

Size of a thumbnail


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