#import <NIMCustomObject.h>
◆ attachmentNeedsDownload
- (BOOL) attachmentNeedsDownload |
|
|
|
|
optional |
◆ attachmentNeedsUpload
- (BOOL) attachmentNeedsUpload |
|
|
|
|
optional |
◆ attachmentPathForDownloading
- (NSString *) attachmentPathForDownloading |
|
|
|
|
optional |
需要下载的附件本地路径
- 返回
- 附件本地路径 @discussion 上层需要保证路径的
◆ attachmentPathForUploading
- (NSString *) attachmentPathForUploading |
|
|
|
|
optional |
◆ attachmentURLStringForDownloading
- (NSString *) attachmentURLStringForDownloading |
|
|
|
|
optional |
需要下载的附件url
- 返回
- 附件url @discussion 如果当前字段是云信的 http url 地址,那么需要调用 id<NIMResourceManager> 中 normalizeURLString: 方法将这个地址进行转 https 和 cdn 加速格式
◆ encodeAttachment
- (NSString *) encodeAttachment |
|
|
|
|
required |
序列化attachment
- 返回
- 序列化后的结果,将用于透传
◆ updateAttachmentURL:
- (void) updateAttachmentURL: |
|
(NSString *) |
urlString |
|
|
optional |
该协议的文档由以下文件生成: