NIMCustomObject Class Reference
| Inherits from | NSObject |
|---|---|
| Conforms to | NIMMessageObject |
| Declared in | NIMCustomObject.h |
attachment
Custom attachment
@property (nullable, nonatomic, strong) id<NIMCustomAttachment> attachmentDiscussion
Custom attachment
The SDK transmits the serialized data of the attachment by calling the encodeAttachment interface.
Declared In
NIMCustomObject.h
+ registerCustomDecoder:
Register the parser for custom messages
+ (void)registerCustomDecoder:(id<NIMCustomAttachmentCoding>)decoderParameters
decoder |
parser for custom messages @disucssion If a custom message type is used, register a custom message parser for unserializing the custom message into an object identified by the upper-layer application. |
|---|
Discussion
Register the parser for custom messages
Declared In
NIMCustomObject.h