NIMCustomAttachment Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMCustomObject.h |
– encodeAttachment
required method
序列化attachment
- (NSString *)encodeAttachment
Return Value
序列化后的结果,将用于透传
Discussion
序列化attachment
Declared In
NIMCustomObject.h
– attachmentNeedsUpload
是否需要上传附件
- (BOOL)attachmentNeedsUpload
Return Value
是否需要上传附件
Discussion
是否需要上传附件
Declared In
NIMCustomObject.h
– attachmentPathForUploading
需要上传的附件路径
- (NSString *)attachmentPathForUploading
Return Value
路径
Discussion
需要上传的附件路径
Declared In
NIMCustomObject.h
– updateAttachmentURL:
更新附件URL
- (void)updateAttachmentURL:(NSString *)urlString
Parameters
urlString |
附件url |
---|
Discussion
更新附件URL
Declared In
NIMCustomObject.h
– attachmentNeedsDownload
是否需要下载附件
- (BOOL)attachmentNeedsDownload
Return Value
是否需要上传附件
Discussion
是否需要下载附件
Declared In
NIMCustomObject.h
– attachmentURLStringForDownloading
需要下载的附件url
- (NSString *)attachmentURLStringForDownloading
Return Value
附件url
Discussion
需要下载的附件url
如果当前字段是云信的 http url 地址,那么需要调用 idNIMResourceManager 中 normalizeURLString: 方法将这个地址进行转 https 和 cdn 加速格式
Declared In
NIMCustomObject.h
– attachmentPathForDownloading
需要下载的附件本地路径
- (NSString *)attachmentPathForDownloading
Return Value
附件本地路径
Discussion
需要下载的附件本地路径
上层需要保证路径的
Declared In
NIMCustomObject.h