NIMCustomAttachment Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | NIMCustomObject.h |
– encodeAttachment
required method
Serialized messages
- (NSString *)encodeAttachmentReturn Value
the serialized result used for transmission in pass-through mode
Discussion
Serialized messages
Declared In
NIMCustomObject.h
– attachmentNeedsUpload
Check for file upload
- (BOOL)attachmentNeedsUploadReturn Value
result
Discussion
Check for file upload
Declared In
NIMCustomObject.h
– attachmentPathForUploading
Path of a file to be uploaded
- (NSString *)attachmentPathForUploadingReturn Value
file path
Discussion
Path of a file to be uploaded
Declared In
NIMCustomObject.h
– updateAttachmentURL:
Update the URL of an uploaded file
- (void)updateAttachmentURL:(NSString *)urlStringParameters
urlString |
attachment URL |
|---|
Discussion
Update the URL of an uploaded file
Declared In
NIMCustomObject.h
– attachmentNeedsDownload
Check for file download
- (BOOL)attachmentNeedsDownloadReturn Value
result
Discussion
Check for file download
Declared In
NIMCustomObject.h
– attachmentURLStringForDownloading
Attachment URL for download
- (NSString *)attachmentURLStringForDownloadingReturn Value
attachment URL
Discussion
Attachment URL for download
If the field starts with CommsEase HTTP, call normalizeURLString in idNIMResourceManager: To conver the URL to HTTPS for CDN acceleration
Declared In
NIMCustomObject.h
– attachmentPathForDownloading
Path for downloading an attachment
- (NSString *)attachmentPathForDownloadingReturn Value
Local path of an attachment
Discussion
Path for downloading an attachment
A file path must be specified
Declared In
NIMCustomObject.h