agora_chat_SDK  3.8.2
Instance Methods | Properties | List of all members
FileMessageBody Class Reference

#import <FileMessageBody.h>

Inheritance diagram for FileMessageBody:
MessageBody ImageMessageBody VideoMessageBody VoiceMessageBody

Instance Methods

(instancetype) - initWithLocalPath:displayName:
 
(instancetype) - initWithData:displayName:
 

Properties

NSString * displayName
 
NSString * localPath
 
NSString * remotePath
 
NSString * secretKey
 
long long fileLength
 
AgoraDownloadStatus downloadStatus
 
- Properties inherited from MessageBody
MessageBodyType type
 

Detailed Description

File message body

Method Documentation

- (instancetype) initWithData: (NSData *)  aData
displayName: (NSString *)  aDisplayName 

Initialize a file message body instance

Parameters
aDataThe data of attachment file
aDisplayNameDisplay name of the attachment
Returns
File message body instance
- (instancetype) initWithLocalPath: (NSString *)  aLocalPath
displayName: (NSString *)  aDisplayName 

Initialize a file message body instance

Parameters
aLocalPathLocal path of the attachment
aDisplayNameDisplay name of the attachment
Returns
File message body instance

Property Documentation

- (NSString*) displayName
readwritenonatomiccopy

Display name of attachment

- (AgoraDownloadStatus) downloadStatus
readwritenonatomicassign

Downloading status of attachment

- (long long) fileLength
readwritenonatomicassign

Length of attachment, in bytes

- (NSString*) localPath
readwritenonatomiccopy

Local path of attachment

- (NSString*) remotePath
readwritenonatomiccopy

Server path of attachment

- (NSString*) secretKey
readwritenonatomiccopy

Secret key for downloading the message attachment


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