NIMCustomAttachment Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMCustomObject.h |
– encodeAttachment
required method
Serialized messages
- (NSString *)encodeAttachment
Return Value
the serialized result used for transmission in pass-through mode
Discussion
Serialized messages
Declared In
NIMCustomObject.h
– attachmentNeedsUpload
Check for file upload
- (BOOL)attachmentNeedsUpload
Return Value
result
Discussion
Check for file upload
Declared In
NIMCustomObject.h
– attachmentPathForUploading
Path of a file to be uploaded
- (NSString *)attachmentPathForUploading
Return 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 *)urlString
Parameters
urlString |
attachment URL |
---|
Discussion
Update the URL of an uploaded file
Declared In
NIMCustomObject.h
– attachmentNeedsDownload
Check for file download
- (BOOL)attachmentNeedsDownload
Return Value
result
Discussion
Check for file download
Declared In
NIMCustomObject.h
– attachmentURLStringForDownloading
Attachment URL for download
- (NSString *)attachmentURLStringForDownloading
Return 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 *)attachmentPathForDownloading
Return Value
Local path of an attachment
Discussion
Path for downloading an attachment
A file path must be specified
Declared In
NIMCustomObject.h