#import <AgoraChatFileMessageBody.h>
◆ initWithData:displayName:
      
        
          | - (instancetype _Nonnull) initWithData: |  | (NSData *_Nullable) | aData | 
        
          | displayName: |  | (NSString *_Nullable) | aDisplayName | 
        
          |  |  |  |  | 
      
 
Initializes a file message instance.
- 参数
- 
  
    | 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.
- 参数
- 
  
    | aLocalPath | The path of the file attachment in the local device. |  | aDisplayName | The display name of the file attachment. |  
 
- 返回
- 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. 
 
 
该类的文档由以下文件生成: