#import <AgoraChatFileMessageBody.h>
◆ initWithData:displayName:
- (instancetype _Nonnull) initWithData: |
|
(NSData *_Nullable) |
aData |
displayName: |
|
(NSString *_Nullable) |
aDisplayName |
|
|
| |
Initializes a file message instance.
- Parameters
-
aData | The data of the attachment file. |
aDisplayName | The display name of the attachment. |
@Result The file message instance.
◆ initWithLocalPath:displayName:
- (instancetype _Nonnull) initWithLocalPath: |
|
(NSString *_Nullable) |
aLocalPath |
displayName: |
|
(NSString *_Nullable) |
aDisplayName |
|
|
| |
Initializes a file message instance.
- Parameters
-
aLocalPath | The path of the file attachment in the local device. |
aDisplayName | The display name of the file attachment. |
- Returns
- The file message instance.
◆ displayName
- (NSString*) displayName |
|
readwritenonatomiccopy |
The display name of the attachment.
◆ downloadStatus
- (AgoraChatDownloadStatus) downloadStatus |
|
readwritenonatomicassign |
The downloading status of the attachment.
◆ fileLength
The data length (bytes) of the attachment.
◆ localPath
The path of the attachment on the local device.
◆ remotePath
The path of the attachment in the server.
◆ secretKey
The secret key for downloading the message attachment.
The documentation for this class was generated from the following file: