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

#import <EMImageMessageBody.h>

Inheritance diagram for EMImageMessageBody:
EMFileMessageBody EMMessageBody

Instance Methods

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

Properties

CGSize size
 
CGFloat compressRatio
 
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, SDK will compress the image of message body that created by -(instancetype)initWithData:displayName: or -(instancetype)initWithData:thumbnailData before send the message

Method Documentation

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

Initialize image message body instance

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

Property Documentation

- (CGFloat) compressRatio
readwritenonatomicassign

Set compress ratio of image message, 1.0 without compress, default value is 0.6, will use the default value if try to set a value that equal to or less than 0

- (CGSize) size
readwritenonatomicassign

Size of image attachment

- (NSString*) thumbnailDisplayName
readwritenonatomiccopy

Display name of thumbnail

- (EMDownloadStatus) thumbnailDownloadStatus
readwritenonatomicassign

Download status of thumbnail

- (long long) thumbnailFileLength
readwritenonatomicassign

File length of thumbnail, in bytes

- (NSString*) thumbnailLocalPath
readwritenonatomiccopy

Local path of thumbnail

- (NSString*) thumbnailRemotePath
readwritenonatomiccopy

Server path of thumbnail

- (NSString*) thumbnailSecretKey
readwritenonatomiccopy

Secret key of thumbnail, need verify secret key when download thumbnail

- (CGSize) thumbnailSize
readwritenonatomicassign

Size of thumbnail


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